Sun WorkShop Compiler C 5.0 User's Guide

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);