单选题语句:printf(“%d”,(a=2)&&(b=-2));的输出结果是()A无输出B结果不确定C-1D1
单选题
语句:printf(“%d”,(a=2)&&(b=-2));的输出结果是()
A
无输出
B
结果不确定
C
-1
D
1
参考解析
解析:
暂无解析
相关考题:
若有下列说明和语句,已知int型数据占2个字节,则下列语句的输出结果是( )。stmct st{char a[15];intb;double c;};printf("%d",sizeof(structSt));A.15B.8C.25D.2
若有下列说明和语句,已知int型数据占2个字节,则下列语句的输出结果是( )。stmct st{ char a[15];int b;double c;};printf("%d",sizeof(struct st));A.15B.8C.25D.2
以下语句段执行后的输出结果是()。includemain(){int k=3;if(k)printf("")elseprint 以下语句段执行后的输出结果是( )。 #include<stdio.h> main() {int k=3; if(k) printf("###") else printf("");}A.###B.C.###D.有语法错误,不能执行
以下程序的输出结果是( )。 include void fun(int x) {if(x/2>0)fun(x/2); printf("%d", 以下程序的输出结果是( )。include<stdio.h>void fun(int x){ if(x/2>0)fun(x/2);printf("%d",x);}main(){fun(3);printf("\n");}
设有说明: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=3,y=0;printf("%d,%d”,-1>x>-101y> 执行以下语句后的输出结果是______。 int x=3,y=0; printf("%d,%d”,-1>x>-101<x<10,-1>y>-101<y<10);A.1 2B.1 1C.1 2D.2 2
有如下定义:charstr[3][2]={’a’,’b’,’c’,’\0’,’e’,’f’};则语句:printf("%s",str[0]);的输出结果是() A.abB.abcefC.abc\0D.abc
若有以下定义语句: char * sl="12345", * s2="1234"; printf("%d"n",strlen(strcpy(s1,s2))); 则输出结果是 ( )A.4B.5C.9D.10
若有以下定义和语句,则输出的结果是______。 char c1='b',c2='e'; printf("%d,%c\n",c2-c1,c2-'a'+"A");A.2,MB.3,EC.2,ED.输出结果不确定
若已定义:int a=5;floatb=63.72;以下语句中能输出正确值的是()A、printf(“%d%d”,a,b)B、printf(“%d%2f”,a,b)C、printf(“%2f%2f”,a,b)D、printf(“%2f%d”,a,b)
有如下定义:charstr[3][2]={’a’,’b’,’c’,’/0’,’e’,’f’};则语句:printf("%s",str[0]);的输出结果是()A、abB、abcefC、abc/0D、abc
单选题有如下定义:charstr[3][2]={’a’,’b’,’c’,’/0’,’e’,’f’};则语句:printf("%s",str[0]);的输出结果是()AabBabcefCabc/0Dabc
单选题设有如下定义:intx=l,y=-1;,则语句:printf(""%d/n"",(x--++y));的输出结果是()A1B0C-1D2