- 16
- 0
- 约8.94千字
- 约 13页
- 2017-01-25 发布于重庆
- 举报
C语言试卷(带答案)
计算机程序设计基础(C语言) 03G0093
参考样题
单项选择题(每题1分,共5分,答案写在题左侧的括号里)
( D )1.请选出可用作C语言用户标识符的是( )
A . get-h B. 5flow C.int D. w_sum
( C )2.在C语言中,以( )作为字符串结束标志
A.‘’ B. ’0’ ; C.‘\0’; D. ‘ ‘
( D )3. 存放100个学生的数据(包括学号、姓名、成绩),在如下的定义中,不正确的是( )。
A.struct student
{ int sno;
char name[20];
float score;} stu[100];
B. struct student
{ int sno;
char name[20];
float score;};
struct student stu[100];
C. struct
{ int sno;
char name[20];
float score;} stu[100];
D. struct student stu[100]
{ int sno;
char name[20];
float score};
( A )4. 下面各函数中能实现打开文件功能
原创力文档

文档评论(0)