C Programming/math.h/labs

In C language the function labs is included in header file stdlib.h. The abs function computes and returns the absolute value of the integer argument i. The labs function computes and returns the absolute value of the long integer argument, of the appropriate long integer type for the function. The llabs function computes and returns the absolute value of long long integer argument.

Description
The labs is a library function. It is used under #include header file. This function computes the absolute value of the long integer argument i. It also returns the absolute value of the argument. That is, if i is negative, the result is opposite of i, but if i is non-negative the result is i.

Required header files

 * 1) include


 * 1) include

Syntax

 * 1) include

long int labs(long int i);