前++ 后++

{

public static void main(String[] args){
	int a = 2;
	int b = 3;
	//       2    *   4    +   2   *    4
	int c = (a++) * (++b) + (--a)*(b++);
	
	System.out.println("a = "+a); //2
	System.out.println("b = "+b); //5
	System.out.println("c = "+c); //16
}

}


版权声明:本文为wangbin___原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接和本声明。