Evaluating Compound Assignment Operators
What is printed as a result of executing the following code segment?
int count = 5;
count++;
count += 3;
count–;
System.out.println(count);
A
9
B
8
C
7
D
5
Question Leaderboard
| Rank | |||||
|---|---|---|---|---|---|
| #1 | bhavinidixit0311 | 1 | 1 | 0m 00s | 100 |
| #2 | sailajavadlamani33 | 1 | 1 | 0m 00s | 100 |
| #3 | kaisuki | 1 | 1 | 0m 00s | 100 |
| #4 | richa.tuli | 1 | 1 | 0m 07s | 93 |
| #5 | ntgamja1 | 2 | 2 | 1m 50s | 90 |
| #6 | zgj07310417 | 1 | 1 | 0m 12s | 88 |
| #7 | liuwilliam072410 | 1 | 1 | 0m 32s | 68 |
| #8 | chunxiangxu.cxu | 0 | 1 | 0m 15s | -25 |
| #9 | bommasam000 | 1 | 1 | 2m 10s | -30 |
| #10 | lsj08030922 | 1 | 1 | 8m 12s | -392 |
Items per page:
10
1 – 10 of 10
APFIVE