Q32
What is the difference between += and = operators?
A.
+= adds value to existing variable, = assigns value
B.
Both operators are the same
AnswerC.
= adds value, += assigns value
D.
+= appends to string, = replaces string
Answer: Option B
Solution
Answer: Option B
No explanation is given for this question Let's Discuss on Board