Printf


library
The standard function in the C programming language library for printing formatted output.
The first argument is a format string which may contain ordinary characters which are just printed and “conversion specifications” – sequences beginning with ‘%’ such as %6d which describe how the other arguments should be printed, in this case as a six-character decimal integer padded on the right with spaces.
Possible conversion specifications are d, i or u (decimal integer), o (octal), x, X or p (hexadecimal), f (floating-point), e or E (mantissa and exponent, e.g. 1.23E-22), g or G (f or e format as appropriate to the value printed), c (a single character), s (a string), % (i.e. %% – print a % character). d, i, f, e, g are signed, the rest are unsigned.
The variant fprintf prints to a given output stream and sprintf stores what would be printed in a string variable.
Unix manual page: printf(3).
(1996-12-08)

Read Also:

  • Printhead

    noun, Computers. 1. the printing element, as a daisy wheel or thimble, on a computer printer. noun 1. (computing) a component in a printer that forms a printed character

  • Print i

    An early system on IBM 705. [CACM 2(5):16 (May 1959)].

  • Printing

    noun 1. the art, process, or business of producing books, newspapers, etc., by impression from movable types, plates, etc. 2. the act of a person or thing that prints. 3. words, symbols, etc., in printed form. 4. printed material. 5. the total number of copies of a book or other publication printed at one time: […]

  • Printing discussion

    [XEROX PARC] A protracted, low-level, time-consuming, generally pointless discussion of something only peripherally interesting to all. [Jargon File]

  • Printing-frame

    noun, Photography. 1. a shallow, boxlike device with a glass plate on one side and an opaque, removable back, for holding a negative firmly against printing paper in contact printing.


Disclaimer: Printf definition / meaning should not be considered complete, up to date, and is not intended to be used in place of a visit, consultation, or advice of a legal, medical, or any other professional. All content on this website is for informational purposes only.