Friday, July 19, 2013

Increments

x++; //adds one to the value of x and stores it as it's new value.

++x; //this will return the value after it has been changed

x++; //this will return the original value before changing the value

No comments:

Post a Comment