Abs() - C library function Program


Declaration :

Explanation :

Purpose The C library function int abs(int x) returns the absolute value of int x.
Parameters x ===> This is the integral value.
Return Value This function returns the absolute value of x.
Header File math.h
Exception

C Program : Example

The following example shows the usage of abs() function.