(48)~(50)以下程序的功能是:建立一个带有头结点的单向链表,并将存储在数组中的字符依次转存到链表的各个结点中,请从与下划线处号码对应的一组选项中选择出正确的选项。
#include <stdlib.h>
struct node
char data; struct node *next;;
(48) CreatList(char *s)
struct node *h,*p,*q;
h=(struct node *)malloc(sizeof(Struct node));
p=q=h;
while(*s!=‘//0’)
p=(struct node *)malloc(sizeof(struct node));
p->data=(49);
q->next=p;
q=(50);
s++;
p->next=0;
return h;
main( )
char str[]="link list";
struct node *head;
head=CreatList(str);
题库:计算机等级考试
类型:最佳选择题
时间:2017-07-03 15:10:55
免费下载:《单项选择》Word试卷
(48)~(50)以下程序的功能是:建立一个带有头结点的单向链表,并将存储在数组中的字符依次转存到链表的各个结点中,请从与下划线处号码对应的一组选项中选择出正确的选项。
#include <stdlib.h>
struct node
char data; struct node *next;;
(48) CreatList(char *s)
struct node *h,*p,*q;
h=(struct node *)malloc(sizeof(Struct node));
p=q=h;
while(*s!=‘//0’)
p=(struct node *)malloc(sizeof(struct node));
p->data=(49);
q->next=p;
q=(50);
s++;
p->next=0;
return h;
main( )
char str[]="link list";
struct node *head;
head=CreatList(str);
A.char*
B.stmct node
C.strumnode*
D.char
本题关键词:肽链结构,存储,储存有效期,单位存款冻结,存款冻结,结存成本,糖链抗原50,个人中心目的论,储存铁,储存池;