trying to create a two dimensional array of strings using malloc.
I use this line to try and create a 2d array of strings
char a[256];
char b*
b = malloc(10 * sizeof(a));
this should create an array of ten rows where each row contains a string of up to 256 characters.
if this is correct do I access elements like this
b[0][0] = k
etc..
I use this line to try and create a 2d array of strings
char a[256];
char b*
b = malloc(10 * sizeof(a));
this should create an array of ten rows where each row contains a string of up to 256 characters.
if this is correct do I access elements like this
b[0][0] = k
etc..