Search
Support & Downloads
All of Support
This Category
Software Products
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 theI64 flag with %d.

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

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

This applies to:
Intel® C++ Compiler for Linux*
Intel® C++ Compiler for Mac OS*
Intel® C++ Compiler for Windows*

Solution ID: CS-004740 (1.0.3575385.3468644)
Date Created: 01-Jan-2003
Last Modified: 25-Apr-2007
Back to Top