单项选择题
以下程序执行后Sum的值是
(48)
。
main()
int i,sum;
for(i=1;i<6;i++)sum+=i;
printf("%d\n",sum);
A.15
B.14
C.不确定
D.0
点击查看答案&解析
<上一题
目录
下一题>
热门
试题
单项选择题
从一个具有n个结点的单链表中查找值为x的结点时,在查找成功的情况下,需平均比较 (45) 个结点。
A.n
B.n/2
C.(n-1)/2
D.(n+1)/2
点击查看答案&解析
单项选择题
若一个满二叉树有m个树叶、n个结点,且其深度为h,则()
A.n=h+m
B.h+m=2n
C.m=h-1
D.n=2
h
-1
点击查看答案&解析
相关试题
For instance, the line of () wa...
RAM only () the data temporarily...
It had included the handling of pu...
It is called () equipment as wel...
Certain keywords or phrases in a h...