public class Test {
public static void main(String[] args) {
int i = 0;
i = i++ + ++i;// 0+2
System.out.println(i);
i = 0;
i = ++i + i++;// 1+1
System.out.println(i);
i = 0;
i = i++ + ++i + i++;// 0+2+2
System.out.println(i);
i = 0;
i = i++ + ++i + i++ + ++i;// 0+2+2+4
System.out.println(i);
}
}
i++与++i
最新推荐文章于 2020-12-16 16:51:43 发布