gpt4 book ai didi

C警告函数调用中缺少哨兵

转载 作者:太空狗 更新时间:2023-10-29 16:20:00 24 4
gpt4 key购买 nike

这是我的警告。

Missing sentinel in function call

我怎样才能删除它。

我正在使用 linux 和 gcc 编译器。

最佳答案

看起来您可能没有用 NULL 终止数组声明。如果没有 null,您可能会有一些内存异常,因为运行时不知道数组在哪里结束以及下一位内存从哪里开始。

关于C警告函数调用中缺少哨兵,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2407605/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com