Compound Assignment Operators - AP Computer Science A

Card 1 of 30

0
Didn't Know
Knew It
0
1 of 3029 left
Question

What does 'x += y' do to x?

Tap to reveal answer

Answer

Increases x by y. Equivalent to x = x + y.

← Didn't Know|Knew It →