(1)int x[]={1,2,3};
(2)int []x[]={{1,2,3},{1,2,3}}; (3)int x[3]= {1,2,3}; (4)int []x={0,0,0}; (5)char c[]={‘a’,’b’}; 答案:(1)(2)(4)(5)
44:给出以下代码,请问该程序的运行结果是什么? class Example{
public static void main(String args[]){ char[] c=new char[100]; System.out.println(c[50]); } }