0
Is x++ gives the result x+1 or x always?
2 ответов
+ 7
if used alone, yes, it will always operate like ' x = x+1'. But if used in another code like 'System.out.println(x++)' , it will print out the value first, then add x by 1.
0
There is no differenece between
Postfix operator
X++ can also written as X=X+1