+ 1

I understand how this works, but can someone explain this with keywords?

int val = 7; int total = val++; System.out.printIn(total); //total = 7 //and this too int val = 7; int total = 7++; System.out.printIn(total);// total = 8

25th Oct 2017, 11:13 PM
Morgan Lee
Morgan Lee - avatar
1 Answer
+ 2
second example not work. First is post-operator
26th Oct 2017, 12:08 AM
Daniel
Daniel - avatar