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.

I am writing a pig latin program. I have tokenized the string

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

1 Expert Approved Answer
Step: 1 Unlock

To store the characters of each token into an array you can copy the token to the latin array charac... View full answer

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 Databases Questions!