- 17
- 0
- 约10.18万字
- 约 76页
- 2017-09-25 发布于江苏
- 举报
[全国计算机等级考试二级C语言南开100题201107]01填空题.doc
全国计算机等级考试C语言――填空题
?????????????????????????????????????????????????????????????
注意:源程序存放在考生文件夹下的BLANK1.C中。
不得增行或删行,也不得更改程序的结构!
请在程序下划线处填入正确的内容并把下划线删除,使程序得出正确的结果。
?????????????????????????????????????????????????????????????
给定程序中,函数FUN的功能是:计算出带有头接点的单向链表中各结点数据域之和作为函数值返回。
#include stdio.h
#include stdlib.h
#define N 8
typedef struct list
{ int data;
struct list *next;
} SLIST;
SLIST *creatlist(int *);
void outlist(SLIST *);
int fun( SLIST *h)
{ SLIST *p; int s=0;
p=h-next;
while(p)
{
/**********************************found*********************************/
原创力文档

文档评论(0)