#include<stdio.h>
#include<stdlib.h>
typedef struct
{
double weight;
char data;
int l,r,parent;
}*hfmtree,tree;
int main(){
hfmtree *p;
(*p)=(hfmtree)malloc(sizeof(tree)*4);
printf("%c",(*p)[1].data);
}
那是随机值,malloc申请的堆内存空间是不会初始化的,里面的内容都是随机值