Question 37Asked in DSSSB TGT Computer Science (Technical), 12 Sep 2025, Shift 3 (5:00 PM)What does the += operator do in C?
- AAdds the right operand to the left operand and assigns the result to the left operand.
- BIt is used to concatenate two strings.
- CIt is an invalid operator.
- DAssigns the value of the right operand to the left operand.
Show answerHide answer
Correct answer: (A) Adds the right operand to the left operand and assigns the result to the left operand.
Explanation
a += b is shorthand for a = a + b: the right operand is added to the left one and the result is stored in the left operand.