Basic Output

Published Aug 24, 2021Updated Oct 28, 2022
Contribute to Docs

In the C language, basic console output is achieved using functions from the “standard input output” header file (stdio.h).

Header File

C itself has no ability to output any information. In order to so, the stdio.h header file must be included in the program, which commonly happens at the top of the file:

#include <stdio.h>

Once this is done, the functions included in it can be used.

Basic Output

Print a string in the console.
Print a char in the console.
Print a string in the console.

All contributors

Looking to contribute?

Learn C on Codecademy