#include<iostream> #include<stdio.h> using namespace std; int main() { int a[2][2]={1,2,3,4}; int (*p)[2] = a;//p point to the row of array a for(int i = 0;i<2;i++)//output matrix using p { for(int j = 0;j<2;j++) { cout<<*(*(p+i)+j)<<" "; } cout<<endl; } int (**q)[2] = &p;//q point to p for(int i = 0;i<2;i++)//output matrix using q { for(int j = 0;j<2;j++) { cout<<*(*(*q+i)+j)<<" "; } cout<<endl; }