gpt4 book ai didi

c++ - 这个警告在 orwell dev C++ IDE 中意味着什么?

转载 作者:太空宇宙 更新时间:2023-11-04 16:13:10 24 4
gpt4 key购买 nike

<分区>

我最近写了下面的简单程序,但编译器显示警告。

#include <iostream>
int main()
{
int a();
std::cout<<a;
return 0;
}

[Warning] the address of 'int a()' will always evaluate as 'true' [-Waddress]

上面的警告是什么意思?为什么a的值是1而不是0?

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