int **p = NULL;
p = (int **) malloc(sizeof (int *) * 3);
for (int i = 0; i < 3; i++)
p[i] = (int *) malloc(sizeof (int) * 4);
In this code a double pointer is used as 2D array. My questions are
if i want to insert 1 at every position.
if i want to insert value 2 at specific location
How can i do this?