有二叉树如下图所示:
则前序序列为( )。
- A.ABDEGCFH
- B.DBGEAFHC
- C.DGEBHFCA
- D.ABCDEFGH
热度🔥314
解析:打开微信小程序查看本题解析
以下叙述中正确的是
有以下程序
#include
#include
void fun( int *p1, int *p2, int *s)
{ s=( int*)calloc(1,sizeof(int));
*s=*p1+*p2;
free(s);
}
main()
{ int a[2]={1,2}, b[2]={40,50},*q=a;
fun(a,b,q);
printf("%d\n", *q);
}
程序运行后的输出结果是