answersLogoWhite

0

What is the function and syntax of printf statement?

Updated: 8/19/2019
User Avatar

Wiki User

12y ago

Best Answer

it's not a statement, it's a function:

len= printf (format, ...more-parameters...);

User Avatar

Wiki User

12y ago
This answer is:
User Avatar

Add your answer:

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

What is the type of printf statement in C?

It is a function.


What is the syntax in getting the highest number in turbo C using the if statement?

#include <limits.h> if (1) { printf ("INT_MAX is %d\n", INT_MAX); printf ("LONG_MAX is %ld\n", LONG_MAX); }


What is the syntax of for loop statement?

syntax: for(initialization;condition;increment) { statements s1; statements s2; } #include<stdio.h> main() { int i,n=5; for(i=0;i<n;i=i+1) { printf("the number s are %d", i); } }


How do you use if statement syntax in a for loop?

You can use any number of if staments within a for-loop, eg: for (i=0; i<10; ++i) { if (i=1) printf ("%d=1\n",i); }


What is use of printf?

printf() is a build-in function under the header file 'stdio.h' in a C programming language. In c++,the same function is accomplished by 'cout' . It is used to display strings enclosed between double quotes. Its syntax is printf("...string/sentences/characters...."); After execution,all the characters between the double quotes will be displayed on the output screen.


What is printf function?

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


Any violation in the syntax of a program statement is called logic error?

No. A violation in the syntax of a program statement is called a syntax error.


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.


Without printf statement semicolon print the statement?

int main (void) { if(printf("Print whatever you want")) { } }


What is syntax of a remark statement?

The only language, which has remark-statement, is BASIC. Syntax: REM any text


How can write the name in c plus plus language without using cout statement?

I believe, you can use C-function - printf().


What is an example of a syntax?

The way an author chooses to join words into phrases, clauses, and sentences. Syntax is similar to diction, but you can differentiate them by thinking of syntax as the groups of words, while diction refers to the individual words.