Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR C

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
 
PREVIOUS NEXT
Tagged: #create #arrya #chars #malloc
ADD COMMENT
Topic
Name
2+5 =