Saturday 1 September 2007

What is printf in c or prototype of printf with example



(q) What is prototype of printf function? Explain each term.



Answer:

Prototype of printf function is:

int printf( const char *format ,…)



Explanation of each term:

Parameter of printf function is:

(1) … (Three continuous dots): It is called ellipsis. It indicates the variable number of arguments.

Example of ellipsis:



void ellipsis(int a,...);

void main()

{

int a=5,b=10;

No comments:

Post a Comment