填空题

在深度为7的满二叉树中,度为2的结点个数为【 】。

【参考答案】

63
<上一题 目录 下一题>
热门 试题

单项选择题
第48~50题基于以下信息。以下程序的功能是:建立一个带有头结点的单向链表,并将存储在数组中的字符依次转储到链表的各个结点中,请从与下划线处号码对应的一组选若中选择出正确的选项。#include stuct 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.char *
B.struct node
C.struct node*
D.char
单项选择题
有以下程序:struct STU{char name[10];int num;float TotalScore;};void f(struct STU *p){struct STU s[2]={{ SunDan ,20044,550},{ Penghua ,20045,537}},*q=s;++p;++q; *p=*q;}main(){struct STU s[3]={{ YangSan ,20041,703},{ LiSiGuo ,20042,580}};f(s);printf( %s%d%3.0f n ,s[1].name,s[1].num,s[1].TotalScore);}程序运行后的输出结果是【 】。
A.SunDan 20044 550
B.Penghua 20045 537
C.LiSiGuo 20042 580
D.SunDan 20041 703
相关试题
  • 一棵二叉树第六层(根结点为第一层)的结点...
  • 以下程序的输出结果是【 】。#include m...
  • 以下程序的功能是:输出100以内(不含1...
  • 设有定义:float x=123.4567;,...
  • 以下程序运行后的输出结果是【 】。main(...