选择题 下列关于线性链表的叙述中,正确的是______。
选择题 以下叙述正确的是______。
选择题 下列运算符中优先级最低的算符是______。
选择题 以下选项中不是字符常量的是______。
选择题 函数fseek(pf,OL,SEEK_END)中的SEEK_END代表的起始点是______。
选择题 有如下程序:
#include <stdio.h>
main()
{
int i;
FILE* fp;
for (i=0;i<5;i++)
{
fp=fopen('output.txt','w');
fputc('A'+i,fp);
fclose(fp);
}
}
程序运行后,在当前目录下会生成一个output.txt文件,其内容是______。
选择题 有以下程序:
#include<stdio.h>
#include<stdlib.h>
void fun(int*p1,int*p2,int*s)
{ s=(int*)calloc(1,sizeof(int));
*s=*p1+*p2;
free(s);
}
main()
{ int a[2]={1,2},b[2]=140,501,*q=a;
fun(a,b,q);
printf('%d\n',*q);
}
程序运行后的输出结果是______。
选择题 下列各序列中不是堆的是______。
选择题 以下叙述正确的是______。
选择题 以下叙述中正确的是______。
选择题 已知有函数f的定义如下:
int f(int a,int b)
{if(a<b);else retum(b,a);}
在main函数中若调用函数f(2,3),得到的返回值是______。
选择题 下列语句组中,正确的是______。
选择题 有以下程序:
#include <stdio.h>
int f(int k)
{ static int n=0;
int m=0;
n++; m++; k++;
return n+m+k;
}
main()
{ int k;
for(k=0;k<2;k++) printf('%d,',f(k));
printf('\n');
}
程序运行后的输出结果是
选择题 以下程序的输出结果是______。
#include <stdio.h>
typedef union {
long x[2];
int y[4];
char z[8];
} MYTYPE;
MYTYPE them;
main()
{ printf('% d\n', sizeof(them));
}
选择题 若有以下程序
#include<stdio.h>
#include<stdlib.h>
#include<strinq.h>
typedef struct stu {
char*name,gender;
int score;
} STU;
void f(char *p)
{ p=(char *)malloc(10);
strcpy(p, 'Qian');
}
main()
{ STU a={NULL, 'm', 290}, b;
a.name=(char *)malloc(10);
strcpy(a.name,'Zhao');
b=a;
f(b.name);
b.gender='f'; b.score=350;
printf('%s,%c,%d,',a.name,a.gender,a.score);
printf('%s,%c,%d\n',b.name,b.gender,b.score);
}
则程序的输出结果是______。
选择题 公司的开发人员可以同时参加多个项目的开发,则实体开发人员和实体项目间的联系是______。
选择题 有以下程序
#include<stdio.h>
#include<stdlib.h>
void fun(int *p1, int *p2, int *s)
{s=(int *)malloc(sizeof(int));
*s=*p1+*(p2++);
}
main()
{ int a[2]={1, 2}, b[2]={10, 20}, *s=a;
fun(a, b, s); printf('%d\n', *s);
}
程序运行后的输出结果是______。
选择题 若有以下程序
#include<stdio.h>
main()
{ int i,j=0;
char a[]='How are you!';
for(i=0; a[i]; i++)
if(a[i]!=' ') a[j++]=a[i];
a[j]='\0';
printf('%s\n',a);
}
则程序的输出结果是______。
选择题 若有定义:float x=1.5;int a=1,b=3,c=2;,则正确的switch语句是______。
选择题 有如下程序:
#include <stdio.h>
main()
{
char ch='A';
while(ch<'D')
{
printf('%d', ch-'A');
ch++;
}
printf('\n');
}
程序运行后的输出结果是______。