以下程序的输出结果是(A)。 main() { int x=0,y=1,z=2; if(x>y) { if(y>z) z=0;} else z-=1; printf(“%d\n”,z);}A)1 B)2C)0 D)-1求详细解释
把代码整理一下就比较清楚了,看注释
答案选A