Vidyalelo
C++ Programming · Q21

Operators and Expressions in C++

Programming · C++ Programming · question 21

Q21

What will be the value of 'x' after executing the following code: int x = 5; x += 3; in C++?

A.
5
B.
8
Answer
C.
3
D.
Compiler error

Answer: Option B

Solution

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