Friday, 12 April 2013

Week eight day 2

Both the increment operator (++) and the decremented operator (--) come in
 two varieties prefix and post fix. The prefix variety is written before the
 variable name (++myAge); the post-fix variety is written after the variable name (myAge++);.

in a simple statemet is doesnt matter which you use but in a complex statement
 when you are incremental or decrements a variable and then assigning the result to
 another variable it doesn't matter

No comments:

Post a Comment