单选题有以下程序:
#include<stdio.h>
main()
{ int a=1, b=0;
if(--a)b++;
else if(a=0) b+=2;
else b+=3;
printf("%d/n", b);
}
程序运行后的输出结果是______。
单选题有以下程序:
#include<stdio.h>
int fun()
{
static int x=1;
x+=1;
return X;
}
main()
{
it i,s=1;
for(i=1;i<=5;i++) s+=fun();
printf("%d/n",s);
}
程序运行后的输出结果是______。
单选题设有定义:char s[81];int i=0;以下不能将一行(不超过80个字符)带有空格的字符串正确读入的语句或语句组是( )。
单选题有以下程序 int d=1; void fun(int p) main(){int a=3; {int d=5; fun(a); d+=p++; d+=a++; printf("%d",d);) printf("%d\n",d);} 程序的输出结果是
单选题有以下程序:
#include <stdio.h>
#include <string.h>
main( )
{ char a[20] ="ab",b[20]="cdef";
int k=0;
strcat(a,b);
while(a[k]!="/0") {b[k]=a[k]; k++; }
puts(b);
}
程序的运行结果是______。
单选题以下数组定义中错误的是
单选题以下程序的输出结果是______。 #include<stdio.h> #include<string.h> fun(char*w,int n) { char t,*s1,*s2; s1=w;s2=w+n-1; while(s1<s2) { t=*s1++; *s1=*s2-; *s2=t; } } main() { char*p; p="1234567"; fun(p,strlen(p)); puts(p); }
单选题有以下程序段:
scanf("%d%d%d", if(a>b) a=b;
if(a>c) a=c; printf("%d/n",a);
该程序段的功能是______。
A.输出a、b、c中的最小值
B.输出a、b、c中的最大值
C.输出a的原始值
D.输出a、b、c中值相等的数值
单选题有以下程序
#include <stdio.h>
int fun()
{
static int x=1;
x+=1;
return x;
}
main()
{
int i,8=1;
for(i=1;i<=5;i++)s+=fun();
printf("%d/n",s);
}
程序运行后的输出结果是______。
单选题有以下程序:
main()
{inty=20;
do{y--;)while(--y);
printf("%d/n",Y--);)
当执行程序时,输出的结果是______。
单选题fgetc函数的作用是从指定文件读入一个个字符,该文件的打开方式必须是______。
单选题有以下程序
#include main()
int flint x,int y) { int a=3,b=4,c=5,d;
{return((y-x)*x);) d=f(f(a,b),f(a,c));
printf("%d\n",d); }
程序运行后的输出结果是
单选题有以下程序: fun(int x,int y){return(x+y);} main() {int a=1,b=2,c=3,Sum; sum=fun((a++,b++,a+b),c++); printf("%d",sum); } 执行后的输出结果是______。
单选题有下列程序:
#include<stdio.h>
structst
{ int(x,y)date[2]={1,10,2,20};
main()
{ structst*p=date;
printf("%d,",p->y);printf("%d/n",(++p)->x);
}
程序的运行结果是
____
。
单选题可在C程序中用作用户标识符的一组标识符是
A. and _2007
B. Date y-m-d
C. Hi Df.Tom
D. case Big1
单选题关于C语言中循环语句的叙述中正确的是( )。
单选题设有定义语句int(*f)(int);,则以下叙述正确的是______。