/for the second time i use a strtok i get a segmentation fault why is that?PHP Code:/ Complete the program to count the number of words in the sentence an$
// print each word separately, along with length of each word.
// If line = "Arizona is hot", your output should be
// Word 1: Arizona Length = 7
// Word 2: is Length = 2
// Word 3: hot Length = 3
char *ptr;
ptr= strtok(line,",");
printf("word:%s length:%d \n\n",ptr,strlen(ptr));
ptr=strtok(NULL,",");
printf("word:%s length:%d \n\n",ptr,strlen(ptr));

