在x86_64上编译时,我得到了如下警告:
warning: format ‘%llu’ expects argument of type ‘long long unsigned int’, but
argument 2 has type ‘u64’unsigned long long和u64都是64位无符号整数,不是吗?那么,究竟是什么不同,是由gcc考虑的呢?
发布于 2016-07-08 15:54:53
简而言之,llu可以是64位,但这不是必须的。这完全取决于机器、编译器等。你应该考虑在你的情况下使用PRIu64。
你的问题已经在这里得到了详细的回答:Link
https://stackoverflow.com/questions/31430397
复制相似问题