Accessing a Library Function:
A
library function can be accessed simply by writing the function name, followed
by the list of arguments that represent the information being passed to the
function. The arguments must be enclosed in brackets and separated by commas.
There may be no arguments in some cases.
For
example:
pow (v,p);
Thus
in case, a library function pow is accessed which is included in the file
math.h. It is a mathematical function which calculates v raised to power p.
Header Files:
While
using various library functions we must include header file that contains
various declaration describing the functions we use. It simply written as:
#include< header file
name>
E.g. #include<stdio.h>
Where
hash (#) tells the compiler that it is a preprocessor and #include acts like a
preprocessor statement. It tells the compiler that the file enclosed in angle
brackets (< >) is to be included at the time of inclusion in the program.
Post a Comment