int **p=new int*[d1]; for(size_t i=0;i!=d1;++i) p[i]=new int[d2];
int **b=&p[1][1]
b[0][0]=10
p[1][1]=10
b[2][3]=20
p[3][4]=20
d1-1
int*
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)