InterviewSolution
Saved Bookmarks
| 1. |
Pick out the compound assignment statement.(a) a = a – 5(b) a = a / b(c) a -= 5(d) a = a + 5 |
|
Answer» The correct answer is (c) a -= 5 To explain: 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. |
|