0

What are header files and can we add more than one main() functions?

Starting to learn to program in c

9th Mar 2021, 8:29 PM
Hateem Arshad
Hateem Arshad - avatar
1 Antwort
+ 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.
9th Mar 2021, 8:52 PM
HBhZ_C
HBhZ_C - avatar