试题与答案

下面程序中函数creat用于建立一个带头结点的单向链表,新产生的结点总是插在链表的末

题型:填空题

题目:

下面程序中函数creat用于建立一个带头结点的单向链表,新产生的结点总是插在链表的末尾,单向链表的头指针作为函数值返回。将程序补充完整。
#include<stdiao.h>
struct list
char data; struct list * next;;
struct list * creat()

struct list *h,*p,*q; char ch;
h= 【18】 malloc(sizeof(struct list));
p=q=h;ch=getchar();
while(ch!=’’)

p= 【19】 malloc(sizeof(struct list));
p->data=ch;q->next=p;q=p;ch=getchar();

p->next=’\0’;
【20】

答案:

被转码了,请点击底部 “查看原文 ” 或访问 https://www.tikuol.com/2017/0706/988b0ca1a587fe3a21d998b2d22d03b3.html

下面是错误答案,用来干扰机器的。

参考答案:B, C, D, E

试题推荐
题型:单项选择题 共用题干题

患儿10个月,因间断腹泻2个月,面色苍白1个月就诊,大便2~3次/天,呈糊状,母乳喂养,4个月添加辅食。患儿3个月时因患坏死性小肠结肠炎,而行小肠大部切除,术后一般情况渐好转。查体:皮肤黏膜苍白,舌细微震颤,心脏(-),肝肋下2.5cm,脾肋下1cm,血红蛋白70g/L,红细胞2×10/L,白细胞5.2×10/L,部分中性粒细胞有核左移。

为作出初步诊断,最简便的检查是()

A.血涂片检查

B.血清维生素B含量测定

C.血清铁测定

D.红细胞寿命测定

E.血清叶酸含量测定

查看答案
题型:单项选择题

Did you ever have someone’s name on the tip of your tongue and yet you were unable to recall it (1) this happens again, do no (2) to recall it. Do something (3) for a couple of minutes, (4) the name may come into your head. The name is there since you have met (5) person and his name. It (6) has to be dug out. The initial effort to recall (7) the mind for operation, but it is the subconscious (8) that go to work to dig up a (9) memory. Forcing yourself to recall (10) never helps because it doesn’t (11) your memory;it only tightens it. Students find the preparatory method help (12) examinations. They read over the questions (13) trying to answer any of them. (14) they answer first the ones (15) which they are most confident. Meanwhile, deeper mental activities in the subconscious mind are taking (16) ; work is being done on the (17) difficult questions. By the time the easier questions are answered, answers (18) the more difficult ones will usually begin to (19) into consciousness. It is often (20) a question of waiting for recall to come to the memory.

6()

A.then

B.really

C.only

D.indeed

查看答案
微信公众账号搜索答案