Q. What is the value of x after this code?
Code:int x = 10; x += 5;
β
Correct Answer: (C)
15
Explanation: x += 5 means x = x + 5, hence x becomes 15.
int x = 10; x += 5;