In the C Programming Language, the labs feature returns the absolute price of a lengthy integer.
Syntax
The syntax for the labs feature in the C Language is:
long int labs(long int x);
Parameters or Arguments
x
A value to convert to an absolute value.
Returns
The labs characteristic returns the absolute price of a long integer represented through x.
Required Header
In the C Language, the required header for the labs function is:
#include <stdlib.h>
Applies To
In the C Language, the labs characteristic can be used in the following versions:
ANSI/ISO 9899-1990
Similar Functions
Other C features that are comparable to the labs function:
fabs function <math.h>
abs function <stdlib.h>
Leave a Review