Tuesday, November 30, 2010

The long long Conversion String

The format conversion string "%lld" exists in ANSI C, but not in the C++ standard.

The size prefix "ll" was defined for ANSI C to correspond to the type 'long long', which has a size of at least 64-bits. Many C++ compilers allow "%lld" as a compiler with the corresponding type of 'long long int' as a compiler extension. The C++0x standard is expected to include 'lld" and the "long long" type.

No comments:

Post a Comment