CloseClose

Encyclopedia.com -- Online dictionary and encyclopedia of facts, information, and biographies
Close window

PRINTF #73 Printf Documentation

PRINTF documentationbe patient.\n", filename, pct); produces output like Processing of `foo.txt' is 37% finished. Please be patient. This example shows the use of the `%d' conversion to specify that an int argument should be printed in decimal notation, the `%s' conversion to specify printing of a string argument, and the `%%' conversion to print a literal `%' character. There are also conversions for printing an integer argument as an unsigned value in octal, decimal, or hexadecimal radix (`%o', `%u', or `%x', respectively); or as a character value (`%c'). Floating-point numbers can be printed in normal, fixed-point notation using the `%f' conversion or in exponential notation using the `%e' conversion. The `%g' conversion uses either `%e' or `%f' format, depending on what is more appropriate for

For your enjoyment and convenience, YouTube videos are automatically associated with content at Encyclopedia.com. Because videos come directly from YouTube, we cannot endorse their accuracy, content, or quality. However, we hope you find them useful or entertaining while using Encyclopedia.com.

More YouTube videos About these videos