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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started