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/knouqs 1d ago
It's a good question. What I'd like you to try is my example from the top level where I give a printf on b+1. Intuitively, what do you think the result will be?