This function will return the absolute value of a long integer.
Usage of labs():
long int labs (long int n);
Parameters:
An integer n.
Return value:
More »
Posted in C Reference stdlib.h Functions |
The integral quotient and remainder of the division of numerator by denominator integer n,d
Usage of ldiv():
ldiv_t ldiv ( long int n, long int d );
Parameters:
n = numerator
d = denominator
Return value:
More »
Posted in C Reference stdlib.h Functions |
This function of stdlib.h will return the quotient and remainder of the division of numerator by denominator integers n,d.
Usage of div():
div_t div ( int n, int d );
Parameters:
n = numerator
d = denominator
Return value:
More »
Posted in C Reference stdlib.h Functions |
This function of stdlib will return the absolute value of an integer.
Usage of abs():
int abs ( int x );
Parameters:
An integer x.
Return value:
The absolute value of integer x.
Source code example of abs():
More »
Posted in C Reference stdlib.h Functions |