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
Get step-by-step solutions from verified subject matter experts
