Sail E0 Webinar
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 Solution

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

Latest Videos

Latest Test Papers