C Tutorial/stdio.h/printf

Материал из C\C++ эксперт
Перейти к: навигация, поиск

printf

Item Value Header file stdio.h Declaration int printf(const char *format, ...); Function display message by format. Return the number of characters actually printed. A negative value indicates failure.


<source lang="cpp">#include <stdio.h> int main(void){

printf("Hi %c %d %s", "c", 10, "there!");

}</source>