Q. Which operator increments a variable by 1?
Solution:
+= 1 increments a variable, e.g., x += 1 increases x by 1.
Get Question Bank
Strengthen Your Practice with our comprehensive question bank.
+= 1 increments a variable, e.g., x += 1 increases x by 1.
Strengthen Your Practice with our comprehensive question bank.