When x=5 system.out.println(x++*6%4);
Answers
Answered by
0
Answer:
eqtlamb nationsrrGBmlsbbn
Answered by
2
Explanation:
There is no difference when used alone, the difference is when you use them in an expression.
a++ evaluates a, then increments it (post-incrementation).
++a increments a, then evaluates it (pre-incrementation).
Example:
int a = 1;
int b = a++; //b = 1, a = 2
System.out.println(b); //prints 1
a = 1;
b = ++a; //b = 2, a = 2
System.out.println(b); //prints 2
Similar questions