C Programming language-C Library Functions

C Library Functions

It is nothing but built-in Functions which comes along with the system. These functions are stored in the library. These functions are called as inbuilt functions in C programming. While using the inbuilt functions in your program, you need to include the respective header files to the header files (which contains prototypes, data definitions of the function).

Example
#include<stdio.h>
#include<ctype.h>
#include<math.h>

void main()
{
  int a = -30, b = 5, c = 100;
  float radius = 1.43;
  double d1 = 9.0, d2 = 2.0;

  printf("%d\n", abs(a));
  printf("%f\n", sin(radius));
  printf("%f\n", cos(radius));
  printf("%f\n", exp(b));
  printf("%d\n", log(c));
  printf("%f\n", pow(d1, d2));
}

Output

30
0.990105
0.140332
148.413159
-1145744106
81.000000