J
2 months ago
Jacklinecountry asked

How is printf supposed to be used when writing a program?

Abhilekh Gautam
Expert
2 months ago

printf() is used to display text or values on the screen.

For Example:

printf("Hello, World");

The above code displays the text Hello, World on the screen.

I hope this clears your confusion. If you have more questions feel free to ask!

C
This question was asked as part of the Learn C Programming course.