Ends in 0d:00h:00m:00s

Buy 1 year, 🎁 Gift 1 year — completely FREE

Split the cost with a friend. You both get 12 months for $99.

Start FREE trial
Background Image

Buy 1 year, Gift 1 year — completely FREE

Start FREE trial
J
last year
Jacklinecountry asked

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

Abhilekh Gautam
Expert
last year

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.