试题与答案

以下程序实现带有头结点的单链表的建立,链表中每个结点包含数据域data(字符型)和指

题型:填空题

题目:

以下程序实现带有头结点的单链表的建立,链表中每个结点包含数据域data(字符型)和指针域next,所建立链表的头指针由参数phd传回调用程序。在空格处填入正确内容。 # include<stdio.h> # include<stdlib, h> struct node { char data; struct node * next; }; void creatlist( 【18】 ) { char ch; struct node * s, * r; * phd= malloc( sizeof (struct node)); r= * phd; ch=getchar(); while(ch !=’@’) { s = malloc(sizeof(struct node)); s->data=ch; r->next=s; r=s; ch= getchar(); }; r->next= 【19】 ; } main ( ) { struct node * head; head= NULL; creatlist( 【20】 ) }

答案:

被转码了,请点击底部 “查看原文 ” 或访问 https://www.tikuol.com/2019/0414/ba7a74a68bbb72c7dea5f850a731dce5.html

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

参考答案:解析:(1) 象征性交货方式下,卖方凭单交货。只要卖方如期提交合同规定的全套合同单据给买方就算完成交货义务。即使货物在运输中损坏或灭失,买方也必须履行付款义务。 (2) 在象征性交货方式下,...

试题推荐
微信公众账号搜索答案