How to declare printf()?
c, printf
Solution
The correct declaration (ISO/IEC 9899:1999) is:
int printf(const char * restrict format, ... );
But it would be easiest and safest to just `#include <stdio.h>`.
Problem
I wanted to print something using printf() function in C, without including stdio.h, so I wrote program as : ``` int printf(char *, ...); int main(void) { printf("hello world\n"); return 0; } ``` Is the above program correct ?