跨函数使用内存问题

来源:互联网 发布:温职院网络课程 编辑:程序博客网 时间:2024/04/19 00:51
#include <stdio.h>int main(){   int *p   fun(&p);
}
int fun(int ** q)
{
    *q = (int *)malloc(4);
  
}

原创粉丝点击