Hi. I am new to the C language. I need to store the commands from input to a pointer array without any "[]"declaratio n. How to create an pointer array by memory allocation? I tried to use the following statement, but it did not work.
static char **choice = (char **)calloc(NUMBE R_COMMAND,sizeo f(char **));
I want to declare this array as private and use by all functions, so I use "static".
Thanks
static char **choice = (char **)calloc(NUMBE R_COMMAND,sizeo f(char **));
I want to declare this array as private and use by all functions, so I use "static".
Thanks
Comment