填空题

按照逻辑结构分类,数据结构可分为线性结构和非线性结构,二叉树属于 【2】 。

【参考答案】

非线性结构
<上一题 目录 下一题>
热门 试题

单项选择题
(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.char*
B.struct node
C.struct node*
D.char
单项选择题
有以下程序 void fun(int*a,int i,int j) int t; if(i<j) t=a[i];a[i]=a[j];a[j]=t; i++; j--; fun(a,i,j); main() int x[]=2,6,1,8,i; fun(x,0,3); for(i=0;i<4;i++) printf( %2d ,x[i]); printf( n ); 程序运行后的输出结果是
A.1 2 6 8
B.8 6 2 1
C.8 1 6 2
D.8 6 1 2
相关试题
  • 以下程序中,函数SumColumMin的功能是:求...
  • 以下程序从终端读入数据到数组中,统计其中...
  • 以下程序通过函数SunFun求这里f(x)=x2...
  • 以下程序运行后的输出结果是 【10】 。...
  • 以下程序运行后的输出结果是 【11】 。...