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