选择题 有以下程序
#include<stdio.h>
main()
{ unsigned char a=8,c;
c=a>>3;
printf('%d\n',c);
}
程序运行后的输出结果是______。
选择题 有以下程序
#include<stdio.h>
int d=1;
void fun(int p)
{ int d=5;
d+=p++;
printf('%d ',d);
}
main()
{ int a=3;
fun(a);
d+=a++;
printf('%d\n',d);
}
程序的输出结果是______。
选择题 下列叙述中正确的是______。
选择题 以下程序运行后的输出结果是______。
#define S(x)4*x*x+1
main()
{int i=6,j=8;
printf('%d\n',s(i+j));
}
选择题 以程序内部的逻辑结构为基础的测试技术是______。
选择题 以下选项中不是C语句的是______。
选择题 下面叙述中错误的是______。
选择题 有以下程序:
#include<string.h>
int a=4;
int f(int n)
{int t=0;static int a=5;
if(n%2){int a=6;t+=a++;}
else{int a=7;t+=a++;)
return t+a++;
}
main()
{int s=a,i=0;
for(;i<2;i++)s+=f(i);
printf('%d\n',s);
}
程序运行后的输出结果是______。
选择题 以下叙述中错误的是______。
选择题 有以下程序
#include<stdio.h>
main()
{int i,j,m=1;
for(i=1;i<3;i++)
{for(j=3;j>0;j--)
{if(i*j>3)break;
m*=i*j;
}
}
printf('m=%d\n',m);
}
程序运行后的输出结果是______。
选择题 若fp已定义为指向某文件的指针,且没有读到该文件的末尾,则C语言函数feof(fp)的函数返回值是______。
选择题 程序中对fun函数有如下说明:
void * fun();
此说明的含义是______。
选择题 有以下程序
#include
void flint b[])
{int i;
for(i=2;i<6;i++)b[i]*=2;
}
main()
{int a[10]={1,2,3,4,5,6,7,8,9,10},i;
f(a);
for(i=0;i<10;i++)printf('%d,',a[i]);
}
程序运行后的输出结果是______。
选择题 有以下程序:
#include<stdio.h>
void fun(char*c, int d)
{ *c=*c+1, d=d+1;
printf('%c, %c', *c, d);
}
main()
{char b='a', a=;A';
fun(b, a); printf('%c, %c\n', b, a);
}
程序运行后的输出结果是______。
选择题 C语言中,while和do...while循环的主要区别是______。
选择题 对于循环队列,下列叙述中正确的是______。
选择题 有以下程序:
#include<stdio.h>
#include<stdlib.h>
main()
{FILE * fp;
char ch, str[5];
if((fp=fopen('file.txt', 'wb+'))=NULL)
{printf('error!\n'); exit(0);}
ch=getchar();
while(ch!='!')
{fputc(ch, fp);
ch=getchar();
}
rewind(fp);
do{
fgets(str, 4, fp);
puts(str);
}
while(!feof(fp));
fclose(fp);
}
程序运行时输入:c:\\test! <回车>,则程序的输出结果是______。
选择题 以下数据结构中,属于非线性数据结构的是______。
选择题 下列叙述中正确的是______。
选择题 以下叙述中正确的是______。