Friday, August 20, 2010

LIBRARY IN C

WHAT IS LIBRARY IN C:
A library is collection of in built functions to perform various operations.They are grouped together as a single unit for re-usability.
If the programmer wishes to use a function contained in library,they only need to specify the function name,following the function prototype i.e, correct call or return condition.Program must #include statement at the beginning of the program.This is known as a header file.The compiler will then internally link the standard library code by default.
SOME COMMONLY USED HEADER FILES ARE:
stdio.h - for file input and output operation
string.h - for string operation
time.h - for manipulating date and time
stdlib.h - for memory management utility functions like calloc() and malloc().

C TUTORIAL 1.

C fundamentals and preview