I have a string array of,
char *string_arr[] = { "Hi", "Hi2", "Hi3", "Hi4" };
Now I need to realloc memory to the array, because I have to insert another element into the array like "Hi5". How can I do that?
I tried:
string_arr = realloc (.....);
but it doesn't work, it gives: "incompatible types in assignment" error.