#include <stdlib.h> char *str = malloc(lenOfWord + 1); //We dont need to multiply the size by sizeof(char) because it is equal to 1