Given the following code:
?
int number = 49;
?
What will be printed, if anything, and what will the value of the variable number be after the following statements are executed?
?
if ( number >= 50)
    cout

What will be an ideal response?

Nothing will be printed since number equals 49; however, the statement increasing the number variable by 1 will be executed since the statements do not have braces around them creating a statement block.  Therefore, the value of the number variable would be 50.

Computer Science & Information Technology

You might also like to view...

To change the author name, you click Options on the FILE tab and enter the new author name

Indicate whether the statement is true or false

Computer Science & Information Technology

An advantage of Roaming user profiles is that users can access their files even if they aren't connected to the network

a. true b. false

Computer Science & Information Technology