选择题 设有定义语句:char a='\72';,则变量a______。
选择题 以下关于指针的叙述中,错误的是______。
选择题 SQL语言又称为______。
选择题 已知字母A的ASCII代码值为65,若变量kk为char型,下列不能正确判断出比中的值为大写字母的表达式是______。
选择题 有以下程序:
#include<stdio.h>
#define S(x)x*x/x
main()
{ int k=6,j=3;
printf('%d,%d\n',S(k+j+2),S(j+k+2));
}
程序运行后的输出结果是______。
选择题 有以下程序:
#include<stdio.h>
int sum(int*array,int len)
{
if(len==1)
return array[1];
else
return array[1]+sum(array+1,len-1);
}
main()
{
int array[5]={0,9,1,2},res;
res=sum(array,3);
printf('%d\n',res);
}
程序运行后的输出结果是______。
选择题 下列叙述中正确的是______。
选择题 有以下程序:
#include <stdio.h>
#include <stdlib.h>
void fun(double *p1,double *p2,double *s)
{ s=(double *)calloc(1,sizeof(double));
*s=*p1+*(p2+1);
}
main( )
{double a[2]={1.1,2.2},b[2]={10.0,20.0},*s=a;
fun(a,b,s);
printf('%5.2f\n', *s);
}
程序的输出结果是______。
选择题 若有以下程序
#include<stdio.h>
#define S(x) x*x
#define T(x) S(x)*S(x)
main()
{ int k=5,j=2;
printf('%d,%d\n',S(k+j),T(k+j));
}
则程序的输出结果是______。
选择题 动态分配一整型数据长度的空间,使指针P指向该存储空间,则下列空缺处应填入的正确语句是______。
int*p;
P=()malloc(sizeof(int));
选择题 以下程序的输出结果是______。
main()
{ int i,j,m=0;
for (i=1;i<=15;i+=4)
for(j=3; j<=19; j+=4) m++;
printf('%d\n',m);
}
选择题 若变量已正确定义,下列正确的程序段是 。
选择题 以下选项中叙述正确的是______。
选择题 有以下程序:
#include <stdio.h>
main()
{char ch[3][5]={'AAAA', 'BBB', 'CC'};
printf('%s\n', ch[1]);
}
程序运行后的输出结果是______。
选择题 设有表示学生选课的三张表,学生S(学号,姓名,性别,年龄,身份证号),课程C(课号,课名),选课SC(学号,课号,成绩),则表SC的关键字(键或码)为______。
选择题 设有定义:int x=11,y=12,z=0;,以下表达式值不等于12的是______。
选择题 设数据结构B=(D,R),其中D={a,b,c,d,e,f},R={(a,b),(b,c),(c,d),(d,e),(e,f),(f,a)},则该数据结构为______。
选择题 有以下程序:
void change(int k[]){k[0]=k[5];)
main()
{int x[10]={1,2,3,4,5,6,7,8,9,10},n=0;
while(n<=4)(change(&x[n]);n++;}
for(n=0;n<5;n++)printf('%d',x[n]);
printf('\n');
}
程序运行后的输出结果是______。
选择题 有以下程序
#include<stdio.h>
main()
(int x=1, y=0;
if(!x) y++;
else if(x==0)
if(x)y+=2;
else y+=3;
printf('%d\n', y);
}
程序运行后的输出结果是______。
选择题 有以下程序段:
int k, j, s;
for(k=2; k<6; k++, k++)
{ s=1;
for(j=k; j<6; j++)s+=j;
}
printf('%d\n', s);
以上程序段的输出结果是______。