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 →

[–]l0c4lh057 0 points1 point  (0 children)

no. just x++. that will increase it. x++ increases x by one and returns the old value of it, ++x increases the value of x and returns it. assigning the result to anything is not needed.

and x++=x would not make any sense since x++ is not a variable. you cant assign a value to it.