Code: #include<iostream.h> main() { int* a;int arr[2][3]; arr[0][0]=1; arr[0][1]=2; arr[0][2]=3; arr[1][0]=4; arr[1][1]=5; arr[1][2]=6; a = &arr[0][0]; int i,j; for(i=0;i<2;i++) { for(j=0;j<3;j++) { cout<<*(a+j)<<endl; } a=a+3; } }
Was there a question in there? It's just code, no explanation, no questions, nothing, nada, zip, zilch.