Question: I am writing a pig latin program. I have tokenized the string the user has entered into individual words. Now I want to take each
I am writing a pig latin program. I have tokenized the string the user has entered into individual words. Now I want to take each token and make them an array of characters. How can I store the characters of each token into an array? This is what I have so far.

1int main(void) char string[SIZE]; int i=0; char latin[SIZE]; printf("Enter String In") fets(string, sizeof string, stdin) printf(" Enter String "); //read string fgets (string, sizeof string, stdin); //create pointer and tokenize char *tokenPtr = strtok(string, " "); E while (tokenPtr) \ latin = tokenPtr; strtok(NULL, " toke nPtr "); =
Step by Step Solution
There are 3 Steps involved in it
To store the characters of each token into an array you can copy the token to the latin array charac... View full answer
Get step-by-step solutions from verified subject matter experts
