【单选题】
下面程序执行后的结果是() #include stdio.h int m=0; void fun( ) { m++; } void main( ) { m++; fun( ); m++; printf(%d,m); }
【简答题】
下面程序的运行时,输入CLanguage↙,输出是[填空1]。#includestdio.hvoid main( ){ char str[30];scanf(%s,str); printf(%s,str);}
【简答题】
以下程序的运行结果是[填空1]。 #include stdio.hvoid main(){int i=1,s=0;do{s+=i++;if (s%7==0)continue;else++i;} while (sprintf(%d\n}
【单选题】
以下程序运行结果是( )。
Main()
{int
if(m++5) printf(%d\n
else printf(%d\n,m--);
}
【单选题】
有如下程序:
#includevoid main( )
{ int a=2,b=-1,c=2;
if (ab)
if (b0) c=0;
else c++;
printf(%d\n
}
该程序的输出结果是
【单选题】
以下程序的运行结果是()。intfun(inta[4][4]){inti;for(i=0;ii++)printf("%2d",a[i][2]);printf("\n");}main(){inta[4][4]={1,1,2,2,1,9,0,0,2,4,0,0,0,5,9,8};fun(a);}
【单选题】
以下程序段的运行结果是()。chara[]="abc";charb[]="xyz";charc[10];strcpy(c,a);strcat(c,b);printf("%s",c);
【单选题】
以下程序的运行结果是。main( ){int c,x,y; x=1; y=1; c=0; c=x++||y++; printf(“\n%d%d%d\n”,x,y,c);}
【单选题】
以下程序的运行结果是。main( ){int c,x,y; x=1; y=1; c=0; c=x++||y++; printf(“\n%d%d%d\n”,x,y,c);}
【单选题】
以下程序的运行结果是( )。 #include stdio.hvoid main(){int i=1,s=3;do{s+=i++;if (s%7==0)continue;else++i;} while (sprintf(%d\n