Question: C program, please help no int variables .1 T-Mobile Wi-Fi 1:44 PM a drive.google.com PF Lab10.pof Sign In Lab 10 Strings Wine a program with
.1 T-Mobile Wi-Fi 1:44 PM a drive.google.com PF Lab10.pof Sign In Lab 10 Strings Wine a program with the file name lab10 peobleml.e hat reads from the uner some sest ina ing e that can hold amasimm of 40 characters and thes it splits the saring into Twe oer strings as ollows l the even gesition characters are oopied into a string called even and al the odd-position chaes wre cogied into a string called odd. The program shouild then pist out the even and odd strings You propam shwld use char . varuhk.pwwr to char, tetravme the ngs str, even and odd The program should behave as ollows (iems underlined are ntered by the we Enter a atring (40 characters maximum) abedefg The even string is aceg The odd string iss bdf Algorithm design preces Declae your vishles Strings ste, even, odd comider what the sines souild be how many cu charactors+the NULL r character tring even)or tring oddl) Another poiner p start may be nooded as 2. Read in the saring from the uner. You cn use scant with a speoific coversion specifier th ennures we do not nead more than 40 characters or you can une the code o the lecture o Wnite a for loop that uses a pointer that traverses the str string and oopics the characies into the even and odd aays increment the pointers tha kcep track of the cumont position in the even/odd sring b. Al the end of the for loop do not forgt so add the NULL tminator to the and of the Print the even/odd strings wingprintt Page 1 1
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
