Getting Started With C

Formatted Output

Here's a simple C program that demonstrates formatted output using printf:

Here's an example program:

Program.c


This program uses the printf function to print an integer, a floating-point number, and a character to the console. The format specifiers %d, %f, and %c are used to specify the type of the value being printed

Resources :

Featured
Special title treatment

With supporting text below as a natural lead-in to additional content.

Q1. Which header file is necessary for using printf and scanf functions?

Q2. What does the * in %*d represent in printf?