Hacker News new | ask | show | jobs
by CobrastanJorji 3255 days ago
I assume they mean that C's support for "arrays" is essentially just C's support for pointer arithmetic plus a mapping of a[b] to *(a+b).
2 comments

You can even swap it a[b] equivalent to b[a].
shouldn't it be:

* (a + b * sizeof(T))

where T is array elements' type?

That's implied in + on a pointer. uint32_t* + 1 actually adds 4.