I have to initialize a string array consisting only of a NULL pointer, nothing else. If I understand correctly assigning a NULL pointer looks like this:
char **array = NULL;
Otherwise, I tried
char *array[] = {NULL};
But the space for the NULL pointer should be dynamically allocated and here I'm confused, my code doesn't work.
char **array = (char**)malloc(sizeof(char*));
I would be really grateful if you could help me with this.