Comment

Comment by lvkv

I’ve always thought of the array index operator:

  a[index]
as syntactic sugar for the pointer arithmetic:

  *(a + index)
From this point of view, the existence of a “backwards” index operator makes sense; the arithmetic evaluates to the same address.
parent lvkv 3 years ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton