注意:此页面搜索的是所有试题
下列程序段的输出结果是(  )
void main(void)
{
int y=1,x=5;
if(x<0) y=-1;
if(x>=0) y=0;
printf("%d\n", y);
}
A.-1
B.0
C.1
D.5

参考答案