Discussion Forum : Essential Operators
Question -

Pick out the compound assignment statement. 

Options:
A .  a = a - 5
B .  a = a / b
C .  a -= 5
D .  None of the mentioned
Answer: Option C

When we want to modify the value of a variable by performing an operation on the value currently 

stored, We will use compound assignment statement. In this option, a -=5 is equal to a = a-5. 



Was this answer helpful ?
Submit Your Solution hear:

Your email address will not be published. Required fields are marked *