Answers for "create arrya of chars malloc"

C
0

create arrya of chars malloc

#include <stdlib.h>

char *str = malloc(lenOfWord + 1);
//We dont need to multiply the size by sizeof(char) because it is equal to 1
Posted by: Guest on December-13-2021

Code answers related to "C"

Browse Popular Code Answers by Language