《C语言程序设计教程》(第三版)李凤霞-主编——第十章习题答案.docVIP

  • 44
  • 0
  • 约3.72千字
  • 约 4页
  • 2019-07-27 发布于福建
  • 举报

《C语言程序设计教程》(第三版)李凤霞-主编——第十章习题答案.doc

习题十 单选题 1~5 DDDCC 6~10 AABDB 11~14 CADC 二、填空题 1、34 12 2、ARRAY a,b,c; 3、1 3 4、a c 5、(*b).day=? b-day=? 分析下列程序执行结果。 #include “stdio.h” main() {static struct s1 {char c[4],*s; s1={“abc”,”def”}; static struct s2 {char *cp;struct s1 ss1; }s2={“ghi”,{“jkl”,”mno”}}; printf(“%c%c\n”,s1.c[0],*s1.s); /*output ab */ printf(“%s%s\n”,s1.c,s1.s); /*output abcdef */ printf(“%s%s\n”,s2.cp,s2.ss1.s); /*output ghimno */ printf(“%s%s\n”,++s2.cp,++s2.ss1.s); /* output hino */ } 以下程序的功能是:读入一行字符(如:a,...,y,z),按输入时的逆序建立一个链式的结点序列,即先输入的位于链表尾(如下图),然后再按输入的相反顺序输出,并释放全部结点。 z z y A ^ #incl

您可能关注的文档

文档评论(0)

1亿VIP精品文档

相关文档