Vidyalelo
C++ Programming · Q11

Operators and Expressions in C++

Programming · C++ Programming · question 11

Q11

What will be the value of 'x' after executing the code: int x = 10; x--; in C++?

A.
10
B.
9
Answer
C.
11
D.
Compiler error

Answer: Option B

Solution

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