例如结构体typdefstruct{int*elm;intlen;}list;函数内listtemp;temp.elm=(list*)malloc(5*sizeof(list));这样之后要如何返回这个temp呢?如果直接返回好像会因为数组的原因报错。... 例如结构体 typdef struct { int *elm; int len; }list; 函数内 list temp; temp.elm=(list*)malloc(5*sizeof(list)); 这样之后要如何返回这个temp呢? 如果直接返回好像会因为数组的原因报错。 展开