1.) Assume c is a char variable. What value does c hold after the following statement executes? (Type the answer without quotes.)

c = toupper('a');___________

2.) Assume c is a char variable. What value does c hold after the following statement executes? (Type the answer without quotes.)

c = toupper('B');___________

3.) Assume c is a char variable. What value does c hold after the following statement executes? (Type the answer without quotes.)

c = tolower('7');___________

Have you actually read the description of toupper?

Converts c to its uppercase equivalent if c is a lowercase letter and has an uppercase equivalent. If no such conversion is possible, the value returned is c unchanged.

So, what do you think are the correct answers?

Thanks Steve! Is that I don't have a book, can't afford it too expensive.

You made it clear...
A, b, 7

toupper('B')

is B a lower-case letter with an upper-case equivalent?
No. So, B is left unchanged. The answers are:

A,B,7

Ok... Thanks!

You obviously have a computer. Just do a web search for "c++ toupper" and you can find documentation online.

If you are studying C++, you must surely have some kind of course materials.

These days there is a huge wealth of documentation online. Make us of it and life will be easier.

1.) To get the answer to this question, we need to understand the functionality of the `toupper()` function. The `toupper()` function is a function from the C standard library that converts a lowercase character to its corresponding uppercase representation.

In this case, the statement `c = toupper('a');` is converting the lowercase character 'a' to its uppercase representation.

The answer to the question is that `c` would hold the value 'A' (without quotes) after the statement executes.

2.) Similar to the previous question, in this case, the statement `c = toupper('B');` is converting the uppercase character 'B' to its uppercase representation.

The answer to the question is that `c` would hold the value 'B' (without quotes) after the statement executes.

3.) In this case, the statement `c = tolower('7');` is attempting to convert the character '7' to its lowercase representation. However, since '7' is not a letter character, the function `tolower()` does not perform any conversion.

The answer to the question is that `c` would hold the value '7' (without quotes) after the statement executes.