番禺南村中学地址:JAVA小选择题

来源:百度文库 编辑:神马品牌网 时间:2024/05/11 16:32:03
public class Test{
public static void main(String arg[]){
System.out.println(6^3);
}
}
what is the output?

6异或3

6 binary 0110

3 binary 0011

0101 相同为0 不同为1

0101 decimal 5

the printer output char 5

输出5

216