Hello friends
suppose i want to defined a 2 dimensional array using pointer. for that i follow the following procedure(given in book). it is working perfactly but i am not getting it.
suppose row =2 and coloum =3
int **p;
p = new int*[2]; //Line 1
*p = new int[3]; /// line2
++*p = new int[3]; //line 3
++*p = new int[3; // Line 4
Now what exactly it is doing?
suppose i want to defined a 2 dimensional array using pointer. for that i follow the following procedure(given in book). it is working perfactly but i am not getting it.
suppose row =2 and coloum =3
int **p;
p = new int*[2]; //Line 1
*p = new int[3]; /// line2
++*p = new int[3]; //line 3
++*p = new int[3; // Line 4
Now what exactly it is doing?
Comment