Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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).


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.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: