Question: Question 1: Question 2: The conversion macro toupper() returns an uppercase version of a lowercase character. If the argument is not a lowercase character, the
Question 1:
Question 2:
The conversion macro toupper() returns an uppercase version of a lowercase character. If the argument is not a lowercase character, the original character is returned unchanged. Write your own version of toupper() without using the
Hint: The lowercase characters are all contiguous. Similarly, the uppercase characters are contiguous. The two ranges, however, are not contiguous.
. . . .| uppercase |. . .| lowercase | . . .
If you can figure out the distance between a lowercase 'a' and an uppercase 'A', then you can create the converted result.
/** Returns the uppercase version of any lowercase character. @param c the character to modify @return the uppercase version of c if c is lowercase. If not, then c. */

The header file
Step by Step Solution
There are 3 Steps involved in it
To solve these tasks we need to create two functions one to co... View full answer
Get step-by-step solutions from verified subject matter experts
