形考务四
题目1
假定struct BOOK{char title40] float price } struct BOOK book 正确语句( )
题目2
假定struct BOOK{char title40] float price } book 正确语句()
题目3
结构类型定义中数成员定义项间采分隔符( )
题目4
假定结构类型定义struct A{int a bdouble c } 该类型长度()
题目5
假定结构类型定义struct D{int a D*next } 该类型长度()
题目6
假定访问结构指针变量 x 中数成员 a 表示方法( )
题目7
结构成员访问表达式 x name 等价表达式()
题目8
假定链表中结点结构类型struct AA{int data struct AA *next } next 数成员类型()
题目9
假定链表表头指针 f 结点中包含 data next 域 该链表表头插入址 p 结点时 应执行操作()
题目10
标准输入设备键盘文件流标识符()
题目11
表示文件结束符符号常量()
题目12
C 语言中开数文件系统函数()
题目13
数文件中读入换行符结束行字符串系统函数()
题目14
二进制文件中写入信息函数 fwrite() 带参数数()
题目15
C 语言中 写操作开文文件方式( )
题目16
结构类型定义中中数成员身类型直接象( )
题目17
结构类型定义中允许出现结构类型完整超前定义( )
题目18
定义结构类型变量时够时进行初始化 ()
题目19
结构类型时必须起关键字 struct 类型标识符 ( )
题目20
假定结构类型定义struct A{int a bA* c } 该类型长度12( )
题目21
假定结构类型定义struct B{int a5]char* b } 该类型长度 20( )
题目22
执行 calloc(n 8) 函数调时 动态分配 8*n 字节存储空间()
题目23
执行 malloc(sizeof(struct BB) ) 函数调时动态存储空间够保存具structBB 结构类型象( )
题目24
假定访问结构象 x 中 a 指针成员指象表示方法 x a( )
题目25
假定访问结构指针 p 指象中 b 指针成员指象表示方法p>b( )
题目26
结构成员访问表达式(*fp) score 等价表达式 fp>score( )
题目27
C 语言中 二进制文件开方式 6 种( )
题目28
C 语言中标准输入输出设备文件属字符文件( )
题目29
磁盘数文件文件名中文件名扩展名必须 省略()
题目30
数文件开方式字符串中字符 r w a 具确定含义分代表读 写追加方式()
题目31
磁盘数文件文件名文件名扩展名组成中间圆点分开( )
题目32
C 语言系统中提供描述文件属性类型标识符 FILE ( )
题目33
次文文件中写入字符次写入字符串 ()
题目34
二进制文件进行读写操作相系统函数()
题目35
C 语言中 系统函数 fseek() 移动数文件中文件位置指针( )
题目36
#include
structWorker {
char name15] 姓名
int age 年龄
float pay 工资
}
voidmain() {
struct Worker x{wanghua524300}
struct Worker y *p
yx p&x
printf(s d 62f\nxnameyagep>pay)
}
题目37
#include
#include
structWorker {
char name15] 姓名
int age 年龄
float pay 工资
}
voidmain() {
struct Worker x
char *tliouting
int d38 float f3493
strcpy(xnamet)
xaged xpayf
printf(s d 60f\nxnamexagexpay)
}
题目38
#include
structWorker {char name15] int age float pay}
intLess(struct Worker r1 struct Worker r2) {
if(r1age
voidmain() {
struct Worker a4]{{abc252420}{def584638}
{ghi494260}{jkl363750}}
struct Worker xa0]
int i
for(i1 i<4 i++)
if(Less(xai])) xai]
printf(s d 60f\nxnamexagexpay)
}
题目39
void QA(struct Worker a] int n) {
int i
for(i1 i
}
假定结构类型struct Worker 定义:
structWorker { char name15] int age float pay}
题目40
int Count(struct IntNode *f)
{ f指单链表表头指针
int c0
while(f) {
c++
ff>next
}
return c
}
假定struct IntNode类型定义:
struct IntNode {int data IntNode* next}
题目41
void xw1(char* fname) {
FILE*foutfopen(fnamew)
char a20]
printf(字符串长度20字符串end作结束标志\n)
while(1) {
scanf(sa)
if(strcmp(aend)0)break
fputs(afout)
fputc(\n’fout)
}
fclose(fout)
}
文档香网(httpswwwxiangdangnet)户传
《香当网》用户分享的内容,不代表《香当网》观点或立场,请自行判断内容的真实性和可靠性!
该内容是文档的文本内容,更好的格式请下载文档