abs
Returns the absolute value of its integer argument
#include <stdlib.h>
int abs (
int j);
abs returns the absolute value of its integer argument.
abs returns the absolute value of its integer argument j.
#include <stdlib.h>
#include <stdio.h>
main ()
{
printf ("%d %d %d\n", abs (-5), abs (0), abs (5) );
}
produces the following:
5 0 5