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(34) << endl;

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!