leonard10 2021-02-06 23:31 采纳率: 100%
浏览 47
已采纳

用c语言实现顺序表的动态初始化和增加动态数组的长度

 

编译时,出现了关于malloc和free的警告,麻烦大佬帮我解答一下疑惑,谢谢

  • 写回答

2条回答 默认 最新

  • SoftwareTeacher 《编程之美》作者 2021-02-07 03:33
    关注

    在最前面加一个  #include <stdlib.h>

    因为: 

    The stdlib.h file contains the header information or prototype of the malloc, calloc, realloc and free functions.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(1条)

报告相同问题?