C Reference function labs()

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 | Comments Off on C Reference function labs()


C Reference function ldiv()

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 | Comments Off on C Reference function ldiv()


C Reference function div()

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 | Comments Off on C Reference function div()


C Reference function abs()

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 | Comments Off on C Reference function abs()