面试题:自增自减
class A12{ public static void main(String[] args) { int a = 10; int b = 5; int c = a++ + ++a - --b - ++b + 1 + a--; //26 System.out.println(c); //11 System.out.println(a); //5 System.out.println(b); } }
class A12{ public static void main(String[] args) { int a = 10; int b = 5; int c = a++ + ++a - --b - ++b + 1 + a--; //26 System.out.println(c); //11 System.out.println(a); //5 System.out.println(b); } }
相关推荐