0

What are += and -=?

22nd Apr 2018, 10:00 PM
Keevod
Keevod - avatar
3 Answers
+ 3
You should see it in the assigning and incrementing operators lesson Example: int x = 10; x+=4 // x = x + 4 or x-=5// x = x - 5 This is the example from the lesson
22nd Apr 2018, 10:13 PM
Paul Yan
Paul Yan - avatar
+ 1
Thanks for explanations!
23rd Apr 2018, 5:13 AM
Keevod
Keevod - avatar