0
public class num {
public static void main(String args[]) {
int i = 5, j = 9, k = 3;
int w, x;
w = i | j | k;
x = i &j & k;
System.out.println(w);
System.out.println(x);
}
}
为什么数值为w = 15
和x = 1
?我正在使用操作符|和“但没有得到正确答案
你期待什么答案? – Cruncher