What will be the value of 'x' after executing the code: int x = 5; x += 3; in C++?
A. 8
B. 5
C. 15
D. Compiler error
Answer: Option A
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