网友您好, 请在下方输入框内输入要搜索的题目:

题目内容 (请给出正确答案)

已知int a=1,b=-1;则语句printf("%d\n",(a--,++b));的输出结果是A.-1 B.0 C.1 D.语句错误


参考答案

更多 “ 已知int a=1,b=-1;则语句printf("%d\n",(a--,++b));的输出结果是A.-1 B.0 C.1 D.语句错误 ” 相关考题
考题 设有定义: float x=123.4567; ,则执行以下语句后的输出结果是 【 6 】 。printf("%f\n",(int)(x*100+0.5)/100.0);

考题 设有定义:float x=123.4567;,则执行以下语句后的输出结果是[ ]。printf("%f\n"(int)(x*100+0.5)/100.1;

考题 设有说明:int a=1,b=0;,则执行以下语句的输出结果是______。 switch(a) {case 1: switch(b) {case 0:printf("**0**\n");break; case 1:printf("**1*\n");break; } case 2:printf("**2**\n");break; }A.**0**B.**0** **2**C.**0** **1** **2**D.switch语句中存在语法错误

考题 设有如下定义: int x=10,y=3,z; 则语句printf("%d\n",z=(x%y,x/y)); 的输出结果是( )。A.1SX 设有如下定义: int x=10,y=3,z; 则语句printf("%d\n",z=(x%y,x/y)); 的输出结果是( )。A.1B.0C.4D.3

考题 若有下列说明和语句,已知int型数据占2个字节,则下列语句的输出结果是( )。 struct st { char a[15]; int b; double c; }; printf("%d",sizeof (struct st));A.15B.8C.25D.2

考题 若int类型数据占两个字节,则下列语句 int k=-1; printf("%d,%u\n",k,k); 的输出为( )A.-1,-1B.-132,767C.-132,768D.-165,535

考题 若有“int a=2019”,则下列程序段的输出结果是()。 if(a>0) printf("1"); else if(a<0) printf("-1"); else printf("0");A.1B.0C.-1D.语句存在错误,没有输出。

考题 已知“int a=5,b=1,c=0;”,则执行下列语句时()。 if (a=b+c) printf("****n"); else printf("####n");A.有语法错误,没有结果B.输出****和####C.输出****D.输出####

考题 6、已知“int a=5,b=1,c=0;”,则执行下列语句时()。 if (a=b+c) printf("****\n"); else printf("####\n");A.有语法错误,没有结果B.输出****和####C.输出****D.输出####