Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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.

image text in transcribed

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

The Continuing Debate Over Depreciation Capital And Income

Authors: Richard P. Brief

1st Edition

0415707889, 9780415707886

Students also viewed these Databases questions