Windows上无符号__int64的printf格式 [英] printf format for unsigned __int64 on Windows
本文介绍了Windows上无符号__int64的printf格式的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我需要打印 ULONGLONG
值( unsigned __int64
)。我应该在 printf
中使用哪种格式?
我在另一个问题中发现了%llu
,但他们说这仅适用于Linux。
I need to print a ULONGLONG
value (unsigned __int64
). What format should i use in printf
?
I found %llu
in another question but they say it is for linux only.
感谢您的帮助。
推荐答案
使用Google搜索 Visual Studio printf unsigned __int64会产生此页面作为第一个结果,它表示可以使用前缀 I64
,因此格式说明符将为%I64u
。
Using Google to search for "Visual Studio printf unsigned __int64" produces this page as the first result, which says you can use the prefix I64
, so the format specifier would be %I64u
.
这篇关于Windows上无符号__int64的printf格式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文