int a = 0; a = ++a + a++; System.out.println("a=" + a);
int b = 0; b = b++ + ++b;// b=0+(1+1) System.out.println("b=" + b);
int c = 0; c = c++ + c;// c=0+1 System.out.println("c=" + c);
int d = 0; d = ++d + d;// d=1+1 System.out.println("d=" + d);
int e = 0; e = ++e + ++e;// e=1+2 System.out.println("e=" + e);
int f = 0; f = f++ + f++;// f= 0+1 System.out.println("f=" + f);
int g = 0; int h; g = g++;// g=0 System.out.println("g=" + g); g = g++;// g=0 System.out.println("g=" + g); h = g++;// h=0 g=1 System.out.println("g=" + g + ",h=" + h);
int i = 0; i = i++ + 2; // i=0+2 System.out.println(i);
近期评论