(48)~(50)以下程序的功能足:建立一个带有头结点的甲—向链表,并将存储在数组中

题型:单项选择题

问题:

(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.*s

B.s

C.*s++

D.(*s)++

考点:计算机等级考试C语言二级C语言笔试
题型:单项选择题

______ of potential danger on late night visits to ATMs, she didn’t dare to go without his boy friend ______ her.

A.Warned; accompanied

B.Having warned; accompanying

C.Warning; accompanied

D.Having been warned; accompanying

题型:单项选择题

下面哪一个不是后印象主义的三位大师?()

A、梵高

B、高更

C、塞尚

D、杜尚

题型:单项选择题

超声多普勒最早在妊娠几周能听到胎心音()

A.5周

B.6周

C.7周

D.10周

E.12周

题型:单项选择题

《公司法》规定,股东以工业产权、专利技术作价出资的,其作价金额不得超过有限责任公司注册资本的( )。

A.50%
B.30%
C.20%
D.10%

题型:单项选择题

在关系代数的连接操作中,连接操作需要取消重复列的是( )。

A.自然连接

B.笛卡尔积

C.等值连接

D.θ连接

更多题库