4 ms·
He said it's the same as *(index + arr) which is correct. C pointer arithmetic already accounts for object sizes. And it's sizeof, not size_of. And
by SamReidHughes 16y ago
He said it's the same as
*(index + arr)
which is correct.
C pointer arithmetic already accounts for object sizes.
And it's sizeof, not size_of. And
arr + x
is completely different from
x + *arr
And it's a series of "values".
- Jacquass12321 16y agoAlways time for a refresher :) http://augustcouncil.com/~tgibson/tutorial/arr.html http://augustcouncil.com/~tgibson/tutorial/arr.html
- marcomonteiro 16y agoI don't know what I was on. Proof positive that sleep depravation does not give me more time to be "productive". Thanks for the correction and apologies for my mistake.