What will be the value of 'x' after executing the following code: int x = 5; x += 3; in C++?
A. 5
B. 8
C. 3
D. Compiler error
Answer: Option B
Related Questions on Operators and Expressions in C plus plus
What is the operator precedence of the multiplication operator (*) in C++?
A. Highest
B. Lowest
C. Equal to addition
D. Equal to subtraction
Join The Discussion