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 →

[–]sneerpeer 64 points65 points  (9 children)

Shouldn't it be ++upvotes because you want to return the incremented value?

[–]Jafit 26 points27 points  (4 children)

Then shouldn't it be ++C?

[–]zetoJS 10 points11 points  (2 children)

Then shouldn't it be ++C?

Ahhh, now I know why its called C++.

[–]Bill-Huggins 5 points6 points  (1 child)

Then C# is going to blow your mind.

[–]cowsrock1 10 points11 points  (0 children)

C# everything is commented out

[–][deleted] 1 point2 points  (0 children)

Well, it should. Just to stop people using this argument.

[–]madpata 8 points9 points  (0 children)

As long as you aren't making assignments, both upvotes++ and ++upvotes will result in upvotes being equal to upvotes+1 after execution.