Question: #include tokenizing.h For what input will this program cause an error and what would be the solution to fix that /* Version 1 */ //
#include "tokenizing.h"
For what input will this program cause an error and what would be the solution to fix that /* Version 1 */ // function tokenizing void tokenizing() { printf("*** Start of Tokenizing Words Demo *** "); char words[200]; char* word; int w_counter; printf("Type a few words seperated by space(q - to quit): "); gets(words); while (strcmp(words, "q")!= 0){ word = strtok(words, " "); w_counter = 1; while(word){ printf("Word #%d is \'%s\' ", w_counter++, word); word = strtok(NULL, " ");
} printf("Type a few words seperated by space(q - to quit): "); gets(words); } printf("*** End of Tokenizing Words Demo *** "); }
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
