java Programming Glossary: old1
Post increment operator not incrementing in for loop http://stackoverflow.com/questions/14571327/post-increment-operator-not-incrementing-in-for-loop assignmed to x . So let's move ahead. First A is evaluated old1 x `old1 becomes 1` x x 1 Increment `x`. `x becomes 2` x old1.. to x . So let's move ahead. First A is evaluated old1 x `old1 becomes 1` x x 1 Increment `x`. `x becomes 2` x old1 This will.. x `old1 becomes 1` x x 1 Increment `x`. `x becomes 2` x old1 This will not be done. As the value has not been assigned back..
|