I have been struggling with pointers in multi-dimensional arrays. Please help me with this code :-
Explain the output :- int b[3][4] = {{1,2,3,4}, {5,6,7,8}, {9,10,11,12}}; int** p; p = (int**)b; cout << (long)*p << "\t" << (long)(*p+1) << "\t" << (long)(*p+2); //long is used to print the output in decimal format instead of hex
Explain the output :-int b[3][4] = {{1,2,3,4}, {5,6,7,8}, {9,10,11,12}};int p;p = (int )b;cout << (long)*p << "\t" << (long)(*p+1) << "\t" << (long)(*p+2);//long is used...