a question on understanding pointer and array
Assume
int a[][3]={5,6,7,8,9,10};
I would like to know what does this specific line do?
int (*ptr)[3] = a;
Furthermore, if we have
1 2
|
++ptr;
printf("%d %d \n", (*ptr)[1], (*ptr)[2]);
|
what should be the output result?
Topic archived. No new replies allowed.