What is the output of the following code: int x = 10; cout << "Value of x is: " << x++ << endl;?
A. Value of x is: 11
B. Value of x is: 9
C. Compilation error
D. Value of x is: 10
Answer: Option D
Related Questions on Introduction to C plus plus
What does the 'cin' object in C++ represent?
A. File output stream
B. File input stream
C. Standard output stream
D. Standard input stream

Join The Discussion