Why we are using header file in C?



Suraj Said

+0 -0

Header file is basically a file name that we are include at top of the program and that file contains set of function that is used to reduce complexity and line of code.



Shreya Said

+0 -0

We are using header files in C to separate certain elements of a program’s source code into reusable files. Header files commonly contain forward declarations of functions, data types, macros, and other identifiers that can be shared across multiple source files. Header files also enable modularity and organization of code, as they encapsulate related functionalities and definitions in a single file. Header files facilitate code reusability, maintainability, and collaboration among programmers.



Submit Your Response