Advertisements
Advertisements
Question
Distinguish between Postfix increment and Prefix increment.
Distinguish Between
Solution
S. No. | Postfix increment | Prefix increment |
1. | This operator operates on the idea of 'CHANGE BEFORE ACTION'. | This operator operates on the basis of 'CHANGE AFTER ACTION'. |
2. | Example:
|
Example:
|
shaalaa.com
Is there an error in this question or solution?
Chapter 1.04: Operators in Java - EXERCISES [Page 44]