<分区>
我声明了一个 long long 类型的变量,并为其分配了 LLONG_MIN
,但我不允许这样做。
ft_long_long_to_ascii_base.c:23:14: error: integer constant is so large that it is unsigned [-Werror]
if (val == -9223372036854775808)
<分区>
我声明了一个 long long 类型的变量,并为其分配了 LLONG_MIN
,但我不允许这样做。
ft_long_long_to_ascii_base.c:23:14: error: integer constant is so large that it is unsigned [-Werror]
if (val == -9223372036854775808)
最佳答案
与其猜测 LLONG_MIN
可能是什么,不如使用提供的宏
#include <stdint.h>
if (val == LLONG_MIN)
关于c - 如何在 C 中不使用 printf 打印 LLONG_MIN?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34095251/