Simple programs can be put in a single file, but when your program grows larger, it’s impossible to keep it all in just one file.
You can move parts of a program to a separate file, then you create a header file.
A header file looks like a normal C file, except it ends with .h instead of .c, and instead of the implementations of your functions and the other parts of a program, it holds the declarations.
#c #c# #c++ #programming-c