
Concept explainers
toupper:
The lowercase letter will be converted by uppercase letter using “toupper” function.
Example:
Consider the example of “toupper” is as follows:
//declare the variable
char c;
//convert equivalent lowercase letter
c = toupper ('x');
//display the output
cout << c;
Here, the “toupper” function is used to convert the given character into uppercase letter.
tolower:
The uppercase letter will be converted by lowercase letter using “tolower” function.
Example:
Consider the example of “tolower” is as follows:
//declare the variable
char c;
//convert equivalent lowercase letter
c = tolower ('X');
//display the output
cout << c;
Here, the “tolower” function is used to convert the given character into lowercase letter.

Want to see the full answer?
Check out a sample textbook solution
Chapter 10 Solutions
Starting Out with C++ from Control Structures to Objects Plus MyLab Programming with Pearson eText -- Access Card Package (9th Edition)
- Microsoft Visual C#Computer ScienceISBN:9781337102100Author:Joyce, Farrell.Publisher:Cengage Learning,Programming Logic & Design ComprehensiveComputer ScienceISBN:9781337669405Author:FARRELLPublisher:CengageC++ Programming: From Problem Analysis to Program...Computer ScienceISBN:9781337102087Author:D. S. MalikPublisher:Cengage Learning
- C++ for Engineers and ScientistsComputer ScienceISBN:9781133187844Author:Bronson, Gary J.Publisher:Course Technology PtrEBK JAVA PROGRAMMINGComputer ScienceISBN:9781337671385Author:FARRELLPublisher:CENGAGE LEARNING - CONSIGNMENTProgramming with Microsoft Visual Basic 2017Computer ScienceISBN:9781337102124Author:Diane ZakPublisher:Cengage Learning




