填空题
顺序存储方法是把逻辑上相邻的结点存储在物理位置
【1】
的存储单元中。
【参考答案】
相邻
点击查看答案&解析
<上一题
目录
下一题>
热门
试题
填空题
有以下程序: #include <stdio.h> void f(int y,int *x) y=y+ *x; *x=*x+y; main() int x=2,y=4; f(y,&x); printf( %d%d n ,x,Y); 执行后的输出结果 【6】 。
点击查看答案&解析
单项选择题
有以下程序: #include <stdio.h> #include <stdlib.h> struct NODE int num; struct NODE *next; ; main() struet NODE *p,*q,*r; int sum=0; p=(struct NODE *) malloc(sizeof(struct NODE)); q=(struct NODE *) malloc(sizeof(struet NODE)); r=(struct NODE *) malloc(sizeof(struct NODE)); P- >num=1;q- >num=2;r->num=3; p- >next=q;q- >next=r;r- >next=NULL; sum + =q- >next- >num;sum + =P- >num; printf( %d n ,sum); 执行后的输出结果是( )。
A.3
B.4
C.5
D.6
点击查看答案&解析
相关试题
下面程序的运行结果是 【18】 。 #in...
下面rotate函数的功能是:将n行n列的矩阵A...
有以下语句段: int n1=10,n2=2...
以下sstrcpy()函数实现字符串复制,即将t...
以下程序的运行结果是 【17】 。 #in...