+ 1
Find the output
int main () {static int a[]={0,1,2,3,4}; static int*p[]={a,a+2,a+1,a+4,a+3}; int**ptr; ptr=p; cout<<**ptr<<' '<<ptr-p<<' '<<*ptr-a; }
1 Answer
int main () {static int a[]={0,1,2,3,4}; static int*p[]={a,a+2,a+1,a+4,a+3}; int**ptr; ptr=p; cout<<**ptr<<' '<<ptr-p<<' '<<*ptr-a; }