hi guys
how can I allocate a double char pointer?
I want an array of pointers to char[] objects.
the objects the double pointer points to are :
char b[1024];
hi guys
how can I allocate a double char pointer?
I want an array of pointers to char[] objects.
the objects the double pointer points to are :
char b[1024];
char a[1024];
char b[1024];
// use either of these
// let the compiler decide how big the array is:
char *ptr[]={a, b};
// you tell it how big
char *ptr[2]={a, b};