Question: in c++ language 1 (a). Write a C++ statement that displays following (with backward slashes included) Do Homework (b). Write a C++ statement
in c++ language
1 (a). Write a C++ statement that displays following (with backward slashes included)
\ Do Homework \
(b). Write a C++ statement that displays following (with quotation marks included)
"Go to school"
(c). Write a C++ statement that displays the ASCII code of the dollar sign $
(d). Write a C++ statement that displays the ASCII code of the blank space.
(e). What will following statements display on the screen?
int a = 'B'; cout << a << endl;
(f). What will following statements display on the screen?
char a = 85; cout << a << endl;
(g). Given a C++ statement: int k = 'a' + '5'; What is the value of k?
(h). Given a C++ statement: int k = 'a' + 5; What is the value of k?
(i). What will following statements display on the screen?
char k = 'B' +7; cout << k << endl;
(j). What will following statement display on the screen?
cout << static_cast
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
