填空题

数据结构包括数据的逻辑结构、数据的 【4】 以及对数据的操作运算。

【参考答案】

存储结构
<上一题 目录 下一题>
热门 试题

单项选择题
以下程序的功能是:建立一个带有头结点的单向链表,并将存储在数组中的字符依次转存到链表的各个结点中,请为下划线处选择正确的选项。 #include < stdlib. h > stuct node char data; struct node * next; ; ( ) CreatList(char * s) struet node * h, * p, * q; h = (struet node * ) ma]loc(sizeof(struct node) ); p=q=h; while( * s! =’ 0’) p = ( struct node * ) ma]loc ( sizeof( struct node) ); p- >data= *s; q- >next=p; q=p; s++; p- > next =’ 0’; return h main( ) char str[ ] = link list ; struet node * head; head = CreatList (str);
A.char *
B.struet node
C.struct node *
D.char
问答题
有以下程序: #include <stdio. h> main ( ) int x[ ] = 1,3,5,7,2,4,6,0 ,i,j,k; for(i =0;i<3;i ++ ) for (j =2;j> = i;j — ) if( x[j + 1 ] > x[j] ) k = x[j] ;x[j] = x[j + 1 ] ;x[j + 1 ] = k; for (i =0;i<3;i++) for(j =4;j <7-i;j ++) if(x[j] >x[j+1]) k=x[j];x[j] =x[j+1];x[j+1] =k; for (i=0;i<8;i ++) printf( %d ,x[i]); prinff( n );程序运行后的输出结果是( )。
相关试题
  • 以下程序段的输出结果是 【15】 。 in...
  • 以下程序运行后的输出结果是 【14】 。...
  • 以下程序从终端读入数据到数组中,统计其中...
  • 以下程序运行后的输出结果是 【20】 。...
  • 以下程序通过函数SunFun()调用F(x),x...