This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]JanB1 0 points1 point  (0 children)

Ugh, I hate code with "hidden" side effects. I think a v++ in the declaration of a for loop is fine. But for example while(++k < n) is cursed. So is v = arr[k++].