A header file's purpose is to share function prototypes, types, constants, macros, etc that are needed to achieve certain functionality. Header files should be included in your program to have all these declarations and definitions available in your source code.
E.g. you can include the stdio.h header file that contains the prototypes of standard input and output functions.
#include <stdio.h>