How do i go about dynamically setting size of a 2d char array.
is this right?
int numcols = 2;
int numrows = 2;
char *my2darray = malloc(numcols*numrows); /* since size of char is 1 */
/* now can i do something like this? */
my2darray = 'a';
my2darray = 'b';
free (my2darray); etc..