三目运算符,及其顺序
题1int a = 1, b = 10;int temp1 = 0 < 1 ? a++ : b++;System.out.println("a = " + a + ", b = " + b);System.out.println("temp1 = " + temp1);题2int c = 1, d = 10;int temp2 = 0 < 1 ? c = c + 1 : d +...
原创
2018-04-07 21:09:54 ·
8078 阅读 ·
1 评论