I wondering to know why this snippet of code give output 112
How this last digit 2
was creating?
public static void main(String[] args) {
int i = 0;
System.out.print(++i);
System.out.print(i++);
System.out.print(i);
Why does this happen?