In the first code snippet, values in various base numbering systems are printed—these are the octal (base-8), decimal (base-10), and hexadecimal (base-16) formats. Each of these values is printed in a minimum field width of 12 characters. The numbers are not truncated. If the converted number is longer than the minimum field, it simply spills over the minimum field width:
printf( " Unsigned Printf \n" );
printf( " Base Base-8 Base-10 Base-16 BASE-16\n" );
printf( " Name octal unsigned hexadeximal HEXIDECIMAL\n" );
printf( " Specifier %%12o %%12u %%12x %%12X \n" );
printf( " [%12o] [%12u] [%12x] [%12X]\n" ,
smallInt , smallInt , smallInt , smallInt );
printf( " [%12o] [%12u] [%12x] [%12X]\n\n" ,
largeInt , largeInt , largeInt , largeInt );
printf( " [%12o] [%12u] [%12x] [%12X]\n\n" ,
anUnsigned , anUnsigned , anUnsigned , anUnsigned );
For each...