abs

Returns the absolute value of an integer.

Format

#include  <stdlib.h>

int abs  (int x);

Argument

x
An integer.

Return Value
The absolute value of the input argument. If the argument is LONG_MIN, abs returns LONG_MIN because -LONG_MIN cannot fit in an int variable. 


Previous Page | Next Page | Table of Contents | Index