以下程序的功能是:建立一个带有头结点的单向链表,并将存储在数组中的字符依次转存到链表的各个结点中,请为下划线处选择正确的选项。()
#include < stdlib. h >
stuct node
char data; struct node * next; ;
( ) CreatList(char * s)
struet node * h, * p, * q;
h = (struet node * ) ma]loc(sizeof(struct node) );
p=q=h;
while( * s! ='/0')
p = ( struct node * ) ma]loc ( sizeof( struct node) );
p- >data= *s; q- >next=p; q=p;
s++;

p- > next ='/0';
return h
main( )
char str[ ] = "link list";
struet node * head;
head = CreatList (str);

题库:计算机等级考试 类型:最佳选择题 时间:2017-07-03 14:21:20 免费下载:《单项选择》Word试卷

以下程序的功能是:建立一个带有头结点的单向链表,并将存储在数组中的字符依次转存到链表的各个结点中,请为下划线处选择正确的选项。()
#include < stdlib. h >
stuct node
char data; struct node * next; ;
( ) CreatList(char * s)
struet node * h, * p, * q;
h = (struet node * ) ma]loc(sizeof(struct node) );
p=q=h;
while( * s! ='/0')
p = ( struct node * ) ma]loc ( sizeof( struct node) );
p- >data= *s; q- >next=p; q=p;
s++;

p- > next ='/0';
return h
main( )
char str[ ] = "link list";
struet node * head;
head = CreatList (str);
A.char *
B.struet node
C.struct node *
D.char

以下程序的功能是:建立一个带有头结点的单向链表,并将存储在数组中的字符依次转存到链表的各个结点中,请为下划线处选择正确的选项。()    #include <

本题关键词:以头昏为主的眩晕,个体活动选择,肽链结构,个人中心目的论,存储,储存有效期,单位存款冻结,单股正链RNA,并发截瘫的脊柱结核,存款冻结;

微信扫码获取答案解析
下载APP查看答案解析