Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

prefix vs postfix increment java

++x           : x is now 2
++x +         : 2 + 
++x + x       : 2 + 2
++x + x++     : 2 + 2 and x is now 3
++x + x++ *   : 2 + 2 *
++x + x++ * x : 2 + 2 * 3
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #prefix #postfix #increment #java
ADD COMMENT
Topic
Name
9+3 =