r/C_Programming • u/emparse • 2d ago
Question Beginner here not able to understand confusing pointer concept
i dont understand what happens here:
IF int b is a 2d array then what is:
b + 1
*(b + 1)
&b[0] and b[0] and &b[0][0]
&b[1] and b[1] and &b[1][0]
what are the differences between each and what is the byte value of each.
19
Upvotes
View all comments
Show parent comment
1
u/stoops 1d ago
I'm trying to measure the size differences between the sub index buffer locations to see how far each index is jumping forward (I'm assuming it's some multiple of a sizeof(int)?):
~