Answer to Question #15183 in C++ for nin

Question #15183
What is the output of the following code? char ch = 'G'; cout << tolower(ch) << endl; Question 8 options: A) the integer value of 'G' B) G C) g D) the integer value of 'g' I tried running it as this. #include <iostream> #include <fstream> using namespace std; int main() { char ch = 'G'; cout << tolower(ch) << endl; system("pause"); }
Expert's answer
The correct answer is D) - the output of the following code is the integer value of 'g', i.e. 103. And remember, that function should return a value, so add "return 0;" to your main() function.

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be first!

Leave a comment

Ask Your question

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS
paypal