有以下程序段,若变量已正确定义并赋值
if(a>b)printf(“x=%d,”, x);
else printf(“y=%d,”, y);
if(a<=b)i++;
else j++;
则与此程序段功能相同的选项是
A)if(a>b){printf(“x=%d,”, x);j++;}
else {printf(“y=%d,”, y);i++;}
B)if(a>b){printf(“x=%d,”, x);i++;}
else {printf(“y=%d,”, y);j++;}
C)if(a<=b){printf(“x=%d,”, x);i++;}
else {printf(“y=%d,”, y);j++;}
D)if(a>=b){printf(“x=%d,”, x);i++;}
else {printf(“y=%d,”, y);j++;}
登录后提交答案
暂无评论,来抢沙发