answersLogoWhite

0

What is printf function?

Updated: 8/17/2019
User Avatar

Wiki User

9y ago

Best Answer

Printf function is used in c language. Printf is used to print something to the standard output. ex: printf ('welcome');

User Avatar

Wiki User

9y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What is printf function?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

What is the function and syntax of printf statement?

it's not a statement, it's a function: len= printf (format, ...more-parameters...);


What is the prototype of printf function?

in stdio.h:extern int printf (const char *fmt, ...);


Is printf keyword?

== == What is printf in c or prototype of printf with example (q) What is prototype of printf function ? Explain each term. Ans: Prototype of printf function is : int printf( const char *format ,…) Explanation of each term : Parameter of printf function is : (three continuous dots) : It is called ellipsis. It indicates the variable number of arguments. Example of ellipsis: #include void ellipsis(int a,...); void main() { int a=5,b=10; clrscr(); ellipsis(a,b); getch(); } void ellipsis(int a,...) { printf("%d ",a); } Output:5 So printf function can have any number of variables as an argument.


Why printf is used instead of print in c?

The printf() function prints a formatted string.


Can you use printf as a return value?

No, it is a function. But printf does return a value: the number of characters it has written.


What is the type of printf statement in C?

It is a function.


How you write a c program for making a call in gcc?

int main() { // Call the printf function printf("This is a function call!\n"); return 0; }


Can you use scanf function within printf function?

Yes: double d; printf ("scanf's just returned %d\n", scanf ("%lf", &d));


What is the difference between cprintf and printf?

The printf function calls on fprintf to write the result of sprintf to standard output. That is:printf("%i\n", 42);is exactly equivalent to:fprintf(stdout, "%i\n", 42);


What is the use of printf and scanf function?

Printf prints something to the standard output stream, and scanf inputs something from the standard input stream.


Write a function in c to implement a pyramid of numbers?

for(i=1;i<=5;i++) { for(x=5;x>=i;x--) { printf(" "); } for(j=1;j<=2*i-1;j++) { printf("1"); } printf("\n"); }


What are the example of turbo c with using scan and print function?

#include<stdio.h> Void main() { int a,b; printf("Enter a Number: "); // for print function as an out-put scanf("%d",&a); //for scan function as in input /* Here we can use print function once again as: */ a=a++; printf("%d",a); }