Vidyalelo
C++ Programming · Q6

Operators and Expressions in C++

Programming · C++ Programming · question 6

Q6

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

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

Answer: Option A

Solution

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