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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!