Question: Write a function that accepts either a C-string or a C++ string object as its argument. The function converts all lowercase letters in the string

Write a function that accepts either a C-string or a C++ string object as its argument. The function converts all lowercase letters in the string to the uppercase letters. For example, if a string is "Part Number 12q23$", the function changes it to "PART NUMBER 12Q23$".

[Hint] Use the library function toupper: if char argument is lowercase letter, return uppercase equivalent; otherwise, return input unchanged

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock 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

Students Have Also Explored These Related Databases Questions!