Chapter 5 Quiz Starting Out With C++ 003

Given that x is 5 in the snippet below.  What will be displayed by the cout statement?

x = 5;
cout << x++;

a. 6
b. 7
c. 5
d. 4


No comments:

Post a Comment