Re:The 5-minute Guide to C Pointers
by dbaupp on Thursday August 16, 2012 @02:06AM
(#4390117)
As RegEx implies, pointer arithmetic implicitly includes the sizeof(<array type>) term, i.e. given
then
points to the next int, not the next byte. And so array[2] == *(array + 2). (The fact that addition commutes means that using 2[array] instead is valid and works in C.)
[ Parent
| on HN ]
There are no comments on this comment yet.