Go to the first, previous, next, last section, table of contents.


printf

Syntax

#include <stdio.h>

int printf(const char *format, ...);

Description

Sends formatted output from the arguments (...) to stdout.

The format string contains regular characters to print, as well as conversion specifiers, which begin with a percent symbol. Each conversion speficier contains the following fields:

Return Value

The number of characters written.

Portability

ANSI, POSIX

Example

printf("%-3d %10.2f%% Percent of %s\n", index, per[index], name[index]);


Go to the first, previous, next, last section, table of contents.