Thursday, 26 September 2013

C - index applied to pointer to pointer

C - index applied to pointer to pointer

I want to ask what does C do when it sees a index on a pointer to pointer;
for example:
struct X {
int a;
int b;
};
struct X ** ptr;
What will happen if a statement contains :
ptr[i] // where i is an unsigned int
Thanks.

No comments:

Post a Comment