Sun Studio 12: C User's Guide

2.6.1 Printing long long Data Types

To print or scan long long data types, prefix the conversion specifier with the letters ll. For example, to print llvar, a variable of long long data type, in signed decimal format, use:


printf("%lld\n", llvar);