Evaluating Compound Assignment Operators
Develop code for assignment statements with compound assignment operators and determine the value that is stored in the variable as a result.
What is printed as a result of executing this code segment?
int count = 5;
count++;
count += 3;
count–;
System.out.println(count);
A
9
B
7
C
5
D
8
Question Leaderboard
| Rank | |||||
|---|---|---|---|---|---|
| #1 | kaisuki | 1 | 1 | 0m 00s | 100 |
| #2 | sailajavadlamani33 | 1 | 1 | 0m 00s | 100 |
| #3 | bhavinidixit0311 | 1 | 1 | 0m 00s | 100 |
| #4 | richa.tuli | 1 | 1 | 0m 07s | 93 |
| #5 | lsj08030922 | 1 | 1 | 8m 12s | -392 |
APFIVE