Hello, OnlineGDB Q&A section lets you put your programming query to fellow community users. Asking a solution for whole assignment is strictly not allowed. You may ask for help where you are stuck. Try to add as much information as possible so that fellow users can know about your problem statement easily.

what is printf in c?

+7 votes
asked Feb 28, 2023 by Komaldeep Kaur (200 points)

5 Answers

0 votes
answered Feb 28, 2023 by Raeyaan Arshad (180 points)
Printf is a function to print out any string, character, or any value.
+5 votes
answered Feb 28, 2023 by Rahul Yadav (240 points)
printf is nothing but the keyword used to print something in a code. It is written as , printf() .

example:

printf("hello world")

output:

hello world
0 votes
answered Mar 1, 2023 by hamzaking11 (420 points)
The printf() is a library function to send formatted output to the screen. The function prints the string inside quotations
0 votes
answered Mar 1, 2023 by Peter Minarik (84,720 points)

printf() prints something to the standard output. In OnlineGDB, the output is in on the bottom, below the text editor.

You can format your output as well. Please, check the documentation that has many examples.

0 votes
answered Mar 8, 2023 by B Pavitra (490 points)
printf is a function is used to print anything in c. u can print characters , strings , integers etc.
Welcome to OnlineGDB Q&A, where you can ask questions related to programming and OnlineGDB IDE and and receive answers from other members of the community.
...