◄Up► ◄Contents► ◄Index► ◄Back► ─────Run-Time Library─────────────────────────────────────────────────────── The format for the printf family of functions is as follows: %[flags][width][.precision][prefix]type ┌──────────────────────────┬──────────────────────────────────────┐ │ ◄Flags► │ ◄Type► │ │ - (left justify) │ d,i (signed decimal) │ │ + (prefix with sign) │ u (unsigned decimal integer) │ │ blank (prefix with blank)│ o (unsigned octal integer) │ │ # (modifies o,x,X, │ x,X (unsigned hex integer) │ │ e,E,f,g,G) │ f (fixed-point float) │ ├──────────────────────────┤ e,E (scientific notation) │ │ ◄Prefix► │ g,G (%e or %f; whichever is shorter) │ │ F (far pointer) │ c (single character) │ │ N (near pointer) │ s (string) │ │ h (short int) │ p (pointer) │ │ l,L (long int or double) │ n (character count) │ └──────────────────────────┴──────────────────────────────────────┘ See also: ◄Width► ◄Precision► ◄Escape Sequences► -♦-