结构体指针作为函数参数

日期:2017-10-09 06:13:52 人气:1

结构体指针作为函数参数

struct ceshi { int data; }; void chage(struct ceshi *p); void main() { struct ceshi *shuju; shuju=(struct ceshi *)malloc(sizeof(struct ceshi));//要给结构体数据开辟一个存储空间 shuju->data = 12; chage(shuju); printf("%d\n", shu
    A+
热门评论