I would prefer i++
over the other two because it expresses a common idiom.
Those lines of code all end up doing exactly the same thing. But if I’m scanning code for an increment, the ++ just sort of jumps off the page.
Also, the i = i++
is actually incorrect. You meant i = ++i
.
Short answer: Technically no, but stylistically, yes.
solved Is there any reason to prefer one style of incrementing an int over another? [closed]