Performance Tools for Software Developers - printf() format descriptors of 64-bit objects

Solution:

There is no difference between descriptors for 64-bit objects and 32-bit objects. When displaying a 64-bit fixed-precision object ( INT64, UINT64, LONG64, ULONG64, or DWORD64) use the I64 flag with %d.

example:
INT64 x = 1234567890123456;
printf("The 64 bit number is: %I64d ",x;)

As a rule, use %p to display the new pointer types. This will give their full hexadecimal value.

 
Para obter informações mais completas sobre otimizações do compilador, consulte nosso aviso de otimização.