top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

What is the prototype of printf function?

+1 vote
584 views
What is the prototype of printf function?
posted Jan 21, 2015 by Alwaz

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button

2 Answers

+1 vote
 
Best answer

Printf is a special case where it takes the variable number of arguments and print them on stdio based on the format specifier. Following is the syntax/prototype -

int printf (__const char *__restrict __format, ...);
answer Jan 21, 2015 by Salil Agrawal
+1 vote

Prototype of printf function is:

int printf( const char *format ,?)

In this the Second parameter: '?' (Three continuous dots) are known as called ellipsis which indicates the variable number of arguments.

answer Jan 22, 2015 by Mohammed Hussain
...