单选题:根据下列,回答题以下程序的功能是:建立一个带有头结点的单向链表,并将存储在数组中的字符依次转储到链表的各个结点中,请从与

  • 题目分类:C语言
  • 题目类型:单选题
  • 号外号外:注册会员即送体验阅读点!
题目内容:
根据下列,回答题以下程序的功能是:建立一个带有头结点的单向链表,并将存储在数组中的字符依次转储到链表的各个结点中,请从与下划线处号码对应的一组选若中选择出正确的选项。#include
stuctnode
{chardata;structnode*next;};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.struct node
C.struct node*
D.char
参考答案:【答案仅供学习,请勿对照自行用药等】
答案解析:

有以下程序 main() {unsignedinta; intb=-1; a=b; printf("%u",a); }

有以下程序 main() {unsignedinta; intb=-1; a=b; printf("%u",a); } 程序运行后的输出结果是(  )A.-1

查看答案

Paragraph4_________.

Paragraph4_________.

查看答案

The young woman was by no means satisfied with the eye opera

The young woman was by no means satisfied with the eye operation.A.Right B.Wrong

查看答案

企业接受现金捐赠的财产价值应作为(  )。

企业接受现金捐赠的财产价值应作为(  )。A.资本公积金 B.资本溢价 C.盈余公积金 D.资本利得

查看答案

在双代号丁程网络计划中,工作M的最早开始时间是第8天,其持续时间为5天,该工作有三项紧后工作,其最迟开始时间分别为第16

在双代号丁程网络计划中,工作M的最早开始时间是第8天,其持续时间为5天,该工作有三项紧后工作,其最迟开始时间分别为第16天、第18天、第21天,则工作M的总时差

查看答案