阅读程序,分析程序执行结果是();includestdio.hint main({ int n=0,m=1,x=2; if(!n)x-=1; if(m)x-=2; if(x)x=x-3; printf(%d\n,x); return 0;}
阅读程序,分析程序执行结果是();includestdio.hint main({ int n=0,m=1,x=2; if(!n)x-=1; if(m)x-=2; if(x)x=x-3; printf(%d\n,x); return 0;}
A.2
B.-6
C.-1
D.-4
正确答案:-4