-
Pick out the compound assignment statement.
-
- p = p / q
- p -= 6
- p = p – 6
- All of above
- None of these
Correct Option: B
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, p -=6 is equal to p = p-6.