[ACCEPTED]-How to declare printf()?-printf
Accepted answer
The correct declaration (ISO/IEC 9899:1999) is:
int printf(const char * restrict format, ... );
But 1 it would be easiest and safest to just #include <stdio.h>
.
Just:
man 3 printf
It will tell you printf
signature:
int printf(const char *format, ...);
this is 1 the right one.
I have no idea why you'd want to do this.
But 1 it should be const char *
.
Here is another version of the declaration:
extern int printf (__const char *__restrict __format, ...);
0
Source:
stackoverflow.com
More Related questions
Cookie Warning
We use cookies to improve the performance of the site. By staying on our site, you agree to the terms of use of cookies.