![](https://static.youtibao.com/asksite/comm/h5/images/m_q_title.png)
[主观题]
若i是int型变量,且有下面的程序片段i=0;if(i<=0)printf("####")elseprintf("****");上面程序片段的输出结果是运行结果为:()。
若i是int型变量,且有下面的程序片段i=0;if(i<=0)printf("####")elseprintf("****");上面程序片段的输出结果是运行结果为:()。
A.####
B.****
C.####****
D.有语法错误,无输出结果
查看答案
![](https://static.youtibao.com/asksite/comm/h5/images/solist_ts.png)
A.####
B.****
C.####****
D.有语法错误,无输出结果
A.200
B.100
C.100 200
D.输出格式符不够,输出不确定的值
classTest{
staticvoidShowArrayInfo(int[]student){
for(inti=0;i
Console.Write(student[i]++);
Console.Write(“”);
}
}
staticvoidMain(){
int[]student=newint[]{1,2,3,4,5};
ShowArrayInfo(student);
Console.Write(“/n”);
ShowArrayInfo(student);
}
}
输出结果: