Header file contains functions, for example string.h header file contains function related to string like strrev, strcat etc. if you want to use that function then you have to add that header file. You can read more about header file here, It helped me a lot.