编译时,出现了关于malloc和free的警告,麻烦大佬帮我解答一下疑惑,谢谢
收起
当前问题酬金
¥ 0 (可追加 ¥500)
支付方式
扫码支付
支付金额 15 元
提供问题酬金的用户不参与问题酬金结算和分配
支付即为同意 《付费问题酬金结算规则》
在最前面加一个 #include <stdlib.h>
因为:
The stdlib.h file contains the header information or prototype of the malloc, calloc, realloc and free functions.
报告相同问题?