0
Why does the program run in c without header file.Don't need header file?
Full details
2 odpowiedzi
+ 2
Actually, this happens only because of the compiler that you are using. The compiler that is used for compiling C program can only compile programs that are written in C, and any other would be detected as an error by the compiler. The C compiler knows that it is compiling a C program, hence even if donot include the basic header file i.e, stdio.h the compiler will automatically links the file or it knows some of the basic inbuilt functions like scanf(), printf(), etc, so it will not show any error and compiles the program successfully. But, you need to include other header files to use other functions.
Sometimes excluding the stdio.h file, some comoilers will show error, as I said it's totally based on the type of compilers.
0
Amal P Franglin , Saurabh
Today's was my interview and asked same question