Vidyalelo
C++ Programming · Q16

Introduction to C++

Programming · C++ Programming · question 16

Q16

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

Answer: Option D

Solution

Answer: Option D
No explanation is given for this question Let's Discuss on Board