For example:
int main (void) { return 0; }
C programs do not require header files. If you want a C program without header files, you can simply not create them. However, you may or may not be able to include your non-header file source files.
Yes,we can compile our program without header file without any error,but we can not use any predefine functions like printf,scanf.
No. Header files are those which contains declaration part of function & library files are those which contains definition part of function. These are those functions which we called in our program by using header files.
When you includes any header file using "" that time compiler try to locate this file first from your program's local directory and then from library. But if you include the .h file using <> then compiler assumes you are including some library file.
#include or#include "nameoftheader"
header files are predefined in c, they include the all necessary function to u to do your work easy instead of writing a function for printing a message or to read a input form key board we are using the library functions which are in the header files. there are different types of header files depending upon the requirement we use them.
Just open the file, read-in N bytes and then examine (parse) for known header values or signature.
The socket.h header file contains definitions for programs that require socket network services; by using this file you can use the predefined definitions for things that would ordinarily take hundreds of lines of code.
Classes and structures can be put in a header file the same way you would use them in a main program; the only difference is that they are placed in a separate file, called a header file. Then, after creating a new file, include that new file with the definition by the use of the preprocessor #include statement.
Header file is a file which is meant to be included into another file during compilation. Examples: string.h, stdio.h, inttypes.h. Header pointer is a pointer to an object called header (for example header of a linked list).
the program contains the which are coding like as our header file ,void main,library function etc.
The header file of graphics in TurboC is graphics.h