The Code StormYOUTUBE PLAYER LOADS ON PLAYi = i++ in Java
i

i = i++ in Java: does it print 0 or 1?

The Code Storm23 Nov 20260:22Open on YouTube

In this lesson

i starts at 0, then we write i = i++. What prints: 0, 1, 2 or a compile error? Watch to the end to see where the increment goes. Instagram caption: i = i++ … so what is i? 🤔 Looks like 1. It isn't. Comment A, B, C or D before the timer ends.

Keep going

More Shorts.