+ 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; }

18th Jul 2019, 2:44 PM
Vineet Joshi
Vineet Joshi - avatar
1 Answer