单选题下列叙述中错误的是( )。
单选题已知大写字母A的ASCII码是65,小写字母a的ASCII码是97。以下不能将变量C中的大写字母转换为对应小写字母的语句是【 】。
单选题有以下程序
#include<stdio.h>
struct s{int n;int a[20];};
voidf(struct S*p)
{int i,j,t;
for(i=0;i<p->n-1;i++)
for(j=i+1;j<p->n;j++)
if(p->a[i]>p->a[j]){t=p->a[i];p->a[i]=p->a[j];p->a[j]=t;}
}
main()
{int i;struct S s={10,{2,3,1,6,8,7,5,4,10,9}};
f(
for(i=0;i<s-n;i++)printf("%d,",s.a[i]);
}
程序运行后的输出结果是______。
单选题下面是对宏定义的描述,不正确的是______。
A.宏不存在类型问题,宏名无类型,它的参数也无类型
B.宏替换不占用运行时间
C.宏替换时先求出实参表达式的值,然后代入形参运算求值
D.其实,宏替换只不过是字符替代而已
单选题有以下程序
#include<stdio.h>
void fun(int n, int*s)
{
int f;
it(n==1)*s=n+1;
else
{
fun(n-1,
*s=f;
}
}
main()
{
int x=0;
fun(4,
printf("%d/n", x);
}
程序运行后的输出结果是______。
单选题执行下列程序时输入456<空格>789<空格>123<回车>,输出结果是______。
#include<stdio.h>
main()
{ char m[80];
int c,i;
scanf("%c",
scanf("%d",
scanf("%s",
printf("%c,%d,%s/n",c,i,m);
}
单选题关于void fun()的叙述中正确的是( )。
单选题有以下程序
main( )
{ int a; char c=10;
float f=100.0; double x;
a=f/=c*=(x=6.5);
printf("%d %d %3.1f %3.1f/n",a,c,f,x); }
程序运行后的输出结果是( )。
单选题若程序中有宏定义行: #defineN 100 则以下叙述中正确的是______。 A.在编译程序对C源程序进行预处理时用100替换标识符N B.宏定义行中定义了标识符N的值为整数100 C.上述宏定义行实现将100赋给标识符N D.在运行时用100替换标识符N
单选题以下程序依次把从终端输入的字符存放到f文件中,用#作为结束输入的标志,则在横线处应填入的选项是______。 #include<stdio.h> main() FILE*fp;char ch; fp=fopen("fname","w"); while((ch=getehar())!='#')fputo(______); fclose(fp); A.ch,fp B.fp,ch C.ch D.ch,"fname/
单选题下面程序的输出结果是 ( ) #include"stdio.h" fun (x) int x; { int y=0; static int z=5; z=x++,y++; return(z); } main() int a=4,i,j; for (i=0;i<2;i++) j=fun(a++); printf("%d",j); }
单选题以下程序运行后的输出结果是 #include<stdio.h> main() int a=1, b=2, C=3, d=0; if(a==1 else printf('%d, %d, %d/n", a, b, C); else printf("%d, %d, %d/n", a, b, C);
单选题以下关于宏的叙述中错误的是( )。
单选题下列程序段的输出结果是______。
inti,x[3][3]={9,8,7,6,5,4,3,2,1},*p=
for(i=0;i<4;i+=2)printf("%d",*(P+i));
单选题若有以下定义和语句: double r=99,*p=&r;*p=r; 则以下正确的叙述是( )。
单选题下列数据流图(DFD)构造规则中正确的是
单选题在ASCII代码表中每一个大写字母比它相应的小写字母的ASCII码
____
。
单选题有以下程序(strcat函数用于连接两个字符串):
#nclude
#include
main()
{
char s[20]=''Welcome\0to\0'',t[]=''Beijing'';
strcat(s,t);
printf(''%s\n'',s);
}
程序运行后的输出结果是( )。
单选题有以下程序
main(int arge,char *argv[] )
int n,i=0;
while(argv[1] [i] !="/0")
{ n-fun(); i++;}
printf ( "%d/n" , n*argc.;
int fun ( )
{ static int s=0;
s+=1;
return s;
}
假设程序经编译、连接后生成可执行文件exam.exe, 若键入以下命令
exam 123 <回车>
单选题设有下列二叉树:对此二叉树先序遍历的结果是