It isn't necessary to include header files in C. However, without the functionality provided by some header files, your program wouldn't be able to do very much that is useful.
to include the header files.
Include files are also known as header files.
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.
The C header files are in the same place as other Unix and Unix-like systems: /usr/include if you installed the compiler.
Java does not require header files like C/C++.
Header files are used to have declarations. It is simple to include a single header file than writing all the needed functions prototypes.
Directories, like /usr/include or C:\MYCOMPILER\INCLUDE
# include <stdio.h> # include <conio.h> # include <stdlib.h> # include <string.h>
Just go to your compiler's include directory, and count the files, there can be dozens of them (Or hundreds. Or more.)
list of header files in c and function prototype associated with each file
We only include the headers we actually use. It would be impractical to include every single header in every single program.
in the java as we use the inheritance property in the same way we can get the the inheritance property in c by using the prepared header files( .h files). there a single program in c use the many methods of many header files like math.h give us to use the use of floor(), sqrt() e.t.c. functions..