class Answer {
public static void main(String[] args) {
int x=5;
int y=0;
x=x++;
y=x++;
System.out.println("x="+x+",y="+y);
}
}
x=6,y=5
---------------------------------------
int x=5;
int y=0;
x=x++;
//y=x++;
System.out.println("x="+x+",y="+y);
x=5,y=0
-------------------------------------------------------------
int x=5;
int y=0;
//x=x++;
y=x++;
System.out.println("x="+x+",y="+y);
x=6,y=5
|
|