Asked by Thomas
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');___________
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');___________
Answers
Answered by
Steve
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?
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?
Answered by
Thomas
Thanks Steve! Is that I don't have a book, can't afford it too expensive.
You made it clear...
A, b, 7
You made it clear...
A, b, 7
Answered by
Steve
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
is B a lower-case letter with an upper-case equivalent?
No. So, B is left unchanged. The answers are:
A,B,7
Answered by
Thomas
Ok... Thanks!
Answered by
Steve
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.
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.
There are no AI answers yet. The ability to request AI answers is coming soon!
Submit Your Answer
We prioritize human answers over AI answers.
If you are human, and you can answer this question, please submit your answer.