Question: What will happen if a variable of type char called ch is typecasted as an integer and cout-ed? cout < < (int) ch; The character

What will happen if a variable of type char called ch is typecasted as an integer and cout-ed? cout << (int) ch;

The character will be displayed

The cout statement will produce a run-time error

The ASCII numeric value of the character will be displayed

The cout statement will not compile

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!