printf() formatting codes %d Signed decimal integer. %o Signed octal integer. %x Signed hexidecimal integer (%X is the same but yield uppercase letters). %ld Signed long decimal number. Can be applied to any of the above. %u Unsigned decimal number. %lu Unsigned long decimal number. %c Single character. %s String. %f Float (six digits of precision). %g Float (up to six digits of precision). %e Float (up to six digits of precision; scientific notation). %lf Double (six digits of precision). %lg Double (up to six digits of precision). %le Double (up to six digits of precision; scientfic notation).