Question: Write a program with three functions: upper, lower, and reverse. The upper function should accept C-string as an argument. It should step through all the

Write a program with three functions: upper, lower, and reverse. The upper function should accept C-string as an argument. It should step through all the characters in the string, converting each to uppercase. The lower function, too, should accept a pointer to a C-string as an argument. It should step through all the characters in the string, converting each to lowercase. Like upper and lower, reverse should also accept a C-string. As it steps through the string, it should test each character to determine whether it is upper or lowercase, it should be converted to lowercase. If a character is lowercase, it should be converted to uppercase.

Test the functions by asking for a string in function main, then passing it to them in the following order: reverse, lower, and upper.

Step by Step Solution

3.47 Rating (154 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

To address this question you are tasked with writing a program in C that includes three separate functions upper lower and reverse Each of these funct... 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

Document Format (2 attachments)

PDF file Icon

609034e0c6cd4_21555.pdf

180 KBs PDF File

Word file Icon

609034e0c6cd4_21555.docx

120 KBs Word File

Students Have Also Explored These Related Programming Questions!