16.int b=0,x=1; 执行语句“if(x++) b=x+1;”后,x,b的值依次为( ).A.2,3 B.2,0 C.3,0 D.3,2

来源:学生作业帮助网 编辑:六六作业网 时间:2024/05/08 09:47:52
16.intb=0,x=1;执行语句“if(x++)b=x+1;”后,x,b的值依次为().A.2,3B.2,0C.3,0D.3,216.intb=0,x=1;执行语句“if(x++)b=x+1;”后

16.int b=0,x=1; 执行语句“if(x++) b=x+1;”后,x,b的值依次为( ).A.2,3 B.2,0 C.3,0 D.3,2
16.int b=0,x=1; 执行语句“if(x++) b=x+1;”后,x,b的值依次为( ).A.2,3 B.2,0 C.3,0 D.3,2

16.int b=0,x=1; 执行语句“if(x++) b=x+1;”后,x,b的值依次为( ).A.2,3 B.2,0 C.3,0 D.3,2
A 解析:x=x+1==1+1=2 b=x+1=2+1=3