top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

What is the prototype of printf function in c language?

+7 votes
1,238 views
What is the prototype of printf function in c language?
posted Apr 3, 2016 by Shahsikant Dwivedi

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

3 Answers

+2 votes
 
Best answer

int printf(const char * format, ...);

answer Apr 3, 2016 by Harshita
+3 votes

int printf( const char *format ,…);

'format' is constant character string, and '.....' indicates there may be variable number of arguments.

answer Apr 4, 2016 by Ashutosh Kumar Anand
0 votes

If you are using linux system.

Then You can execute "man 3 printf"
or for any C api you wanted to know.

man 2 --> for system calls (functions provided by the kernel)
man 3 --> for library calls (functions provided by the kernel)

answer Nov 30, 2016 by Arshad Khan
...