Black
66
%Off
November
0d: 00h: 00m: 00s

🎁 Get 2 extra months of learning — completely FREE

That's 60 extra days to master new skills, build more projects, and land your dream job.

Become a PRO
Background Image

🎁 Get 2 extra months of learning completely FREE

Become a PRO
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.