如何使用 GCC printflong long int
以及unsigned long long int
在 C99 中?
我已经搜索了其他建议使用的帖子,%lld
但它给出了这些警告:
警告#1:格式为 [-Wformat]| 的未知转换类型字符“l”|
警告#2:格式参数过多 [-Wformat-extra-args]|
对于以下尝试:
#include <stdio.h>
int main()
{
long long int x = 0;
unsigned long long int y = 0;
printf("%lld\n", x);
printf("%llu\n", y);
}