0
What are header files and can we add more than one main() functions?
Starting to learn to program in c
1 Answer
+ 3
Header file with .h extension are used to separate main program with .c extension/source file from functions prototypes and libraries that you need in your program.So you can regroup all your constant variables and functions definition in the header files and you will call them in the source or program file.Each program has by convention it's main function so you can just define one main function to your program.