Hello, OnlineGDB Q&A section lets you put your programming query to fellow community users. Asking a solution for whole assignment is strictly not allowed. You may ask for help where you are stuck. Try to add as much information as possible so that fellow users can know about your problem statement easily.

what is header files ?

+8 votes
asked Jan 5 by Shantanu Mukherjee (210 points)

1 Answer

+2 votes
answered Jan 6 by Peter Minarik (45,000 points)

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>
Welcome to OnlineGDB Q&A, where you can ask questions related to programming and OnlineGDB IDE and and receive answers from other members of the community.
...