Printf De C

Páginas: 4 (959 palabras) Publicado: 13 de octubre de 2011
printf
function int printf ( const char * format, ... ); Print formatted data to stdout Writes to the standard output (stdout) a sequence of data formatted as the format argument specifies. Afterthe format parameter, the function expects at least as many additional arguments as specified in format.

Parameters
format String that contains the text to be written to stdout. It can optionallycontain embedded format tags that are substituted by the values specified in subsequent argument(s) and formatted as requested. The number of arguments following the format parameters should at leastbe as much as the number of format tags. The format tags follow this prototype: %[flags][width][.precision][length]specifier Where specifier is the most significant one and defines the type and theinterpretation of the value of the coresponding argument: specifier c Character d or i e E f g G o s u x X p n Output Example a 392 3.9265e+2 3.9265E+2 392.65 392.65 392.65 610 sample 7235 7fa 7FAB800:0000

Signed decimal integer Scientific notation (mantise/exponent) using e character Scientific notation (mantise/exponent) using E character Decimal floating point Use the shorter of %e or %f Usethe shorter of %E or %f

%

Unsigned octal String of characters Unsigned decimal integer Unsigned hexadecimal integer Unsigned hexadecimal integer (capital letters) Pointer address Nothing printed.The argument must be a pointer to a signed int, where the number of characters written so far is stored. A % followed by another % character will % write % to stdout.

The tag can also containflags, width, .precision and modifiers sub-specifiers, which are optional and follow these specifications: flags description Left-justify within the given field width; Right justification is the default(see width sub-specifier). Forces to precede the result with a plus or minus sign (+ or -) even for positive numbers. By default, only negative numbers are preceded with a - sign. If no sign is...
Leer documento completo

Regístrate para leer el documento completo.

Estos documentos también te pueden resultar útiles

  • programacion c printf
  • uso del printf
  • Entrada y Salida printf scanf
  • Fckc c c c c
  • ´ç´-ç´-ç´-
  • ahncc c c c
  • <c<c<
  • No lo c

Conviértase en miembro formal de Buenas Tareas

INSCRÍBETE - ES GRATIS