0
Do you can explain this question please?
What is output of this code? int x[3]={1,2,3}; int (*p) [3] = & x; cout<<(*p) [2];
3 Answers
0
int x[3]={1,2,3}; //In this row you declared an integer array with 3 elements.
int (*p) [3] = & x; // Here you declared the variable p as container for the address off x .
cout<<(*p) [2]; // Gif you as output the third element from the array x.
The (*p) confused me.
Wy *p dont work in steed off (*p)?
*p is here the same as x. because you dereferenced it.