Page 1 of 1

How to print unsigned __int64 using printf

Posted: Wed Jul 22, 2009 8:54 pm
by Jane
Hi all,

Is there any way to display __int64 using the printf command?
(I couldn't find any from the MS site)

Jane

Re: How to print unsigned __int64 using printf

Posted: Wed Jul 22, 2009 9:00 pm
by Neo
The following code will do the thing on MS VC 6.0.

Code: Select all

printf("value using I64d: %I64d\n", value);
printf("value using I64x: %016I64x(hex)\n", value);
Hope this will help.

Neo