Answers for "how to dynamically allocate array of strings in c"

0

allocate a array on strings in c

char **strs;
int num_of_strs = 10;

strs = malloc (sizeof(char *) * num_of_strs );
Posted by: Guest on March-26-2022

Browse Popular Code Answers by Language