Practice · 1 of 6
Speed: two increments, one expression
CHALLENGE
Difficulty: intermediate+25 XP
SPEED DRILL — target under 90 seconds.
What is the value of y?
``java
int x = 5;
int y = x++ + ++x;
`
A. 10
B. 11
C. 12
D. 13
Call answer(...)` exactly once with your option letter and a one-sentence reason.
Press Submit to check your solution.
Back to lesson: Practice: Speed set: 90-second drills