下列程序执行后,k的值是( )。 public class Testhhh
题型:单项选择题
问题:
下列程序执行后,k的值是( )。 public class Testhhh { public static void main(String args[ ]) { inti=6,j=8,k=10,m=7; if(i>j| |m k++; else k- -; System.out.println(k); } }
A. A数组中的所有元素都为0
B. A数组中的所有元素值不确定
C. A数组中所有元素值都为Empty
D. 执行Erase A 后,A数组中所有元素值都不为0