现有如下程序片断:intx=6;if(x){System.out.println(“x=”+x);}else{System.out.println(“x=0”);}执行程序片断的结果是()。

A.x=6 B.x=0 C.编译出错 D.运行异常

时间:2023-08-04 11:10:17

相似题目