2.13.6.1 abs

Declaration:

int abs(int x);

Returns the absolute value of x. Note that in two’s compliment that the most maximum number cannot be represented as a positive number. The result in this case is undefined.

The absolute value is returned.