If we want to print a 64-bit value, we need to use the ll length modifier, as follows:
printf( " Specifier %%20lld %%-20lld %%-.20lld\n" );
printf( " [%20lld] [%-20lld] [%-.20lld]\n" ,
reallyLargeInt , reallyLargeInt , reallyLargeInt );
printf( " %%20.3lld %%-20.3lld %%lld\n" );
printf( " [%20.3lld] [%-20.3lld] [%lld]\n\n" ,
reallyLargeInt , reallyLargeInt , reallyLargeInt );
These printf statements are the same format specifiers as before, except they are in a minimum field of 20 characters and they use the lld type conversion to print a 64-bit value. Also, as before, we will see how these appear in the output and then compare them to the formatted 32-bit values.