Does the concept of header files and library files are same. In other words is a header file same as library files. If not what is the difference between the two.
Printable View
Does the concept of header files and library files are same. In other words is a header file same as library files. If not what is the difference between the two.
Header files are files that are included in other files prior to compilation by the C preprocessor.Header files also can contain declaration of data and functions. A library is a collection of functions contained within a single file. Each library has a header file, which contains the prototypes of the functions contained within the library that may be used by a program.
header files are different from library files.Header files are similar to interfaces which describes some functionalies without knowing how it works but library files are similarly to implementation which tell us how the actual functionality works or how it is implemented.