下面程序的输出结果是什么?( )
class Upwork {
public static void main(String args[]) {
int x, y;
x = 10;
x++;
--x;
y = x++;
System.out.println(x + " " + y);
}
}11 11
10 10
11 10
10 11
++在前,先加1,再运算
++在后,先运算1,再加1
--规则同++
++在后,先运算1,再加1
--规则同++