2 posts / 0 new
Last post
emdok
what is meant by library?
armod
library contains variables

library contains variables and functions which are responsible to perform some process or action defined by users and return some value or data. The major component of library are….

Header File (having “.h” extension)
Standard C file (having “.c” extension)
1) Header File: Header file consists variable declaration and the function declaration (prototype) which are being defined in C file. If you want to use your header file in more than one file than variables should be declare by “extern” keyword in header file. Functions can also be declared by “extern” keyword.

2) C file: The C file contains the definition of function which are declared in header file and may or may not be return some value to the source file. If function is returning any value then it must be stored in variable which having specific data type i.e. same as data type of return variable at the time of function call.