Pick out the compound assignment statement.

Pick out the compound assignment statement.
A. a = a – 5
B. a = a / b
C. a -= 5
D. a = a + 5
 
Answer: c
Explanation: 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.
 

Tìm kiếm

Back
Top