i++;
i++; is a very useful piece of code but it doesn’t always act how people expect. This was highlighted when a friend asked me about it today. He had the following code: int i = 0; int j = i++; He wanted both i and j to be incremented and thought that the ++ syntax … More i++;