Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Please c code and string fuctions Write a function: void reverse(char * line, char * reversed) that takes data a line at a time and

image text in transcribedPlease c code and string fuctions
Write a function: void reverse(char * line, char * reversed) that takes data a line at a time and reverse the words of the line. For example, Using the reverse function, write a program which, in a loop: 1. Prompts user to enter a line and reads it from input 2. Passes the string to function reverse 3. Prints out the reversed line 4. Prompts the user to "do another" by typing "y", or to quit the program by typing anything else. Sample Output: Enter a line: birds and bees The reverse is: bees and birds Do Another (y)?y Enter a line: Hello World The reverse is: World Hello Do Another (y)?n Press any key to continue

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

Database Principles Programming And Performance

Authors: Patrick O'Neil

1st Edition

1558603921, 978-1558603929

More Books

Students also viewed these Databases questions

Question

2. (1 point) Given AABC, tan A b b

Answered: 1 week ago