Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Zortech C++ 3.0r4 - <b>abs</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
abs


Usage

   #include <stdlib.h>
   int abs(int i);

   ANSI

Description

   abs produces the absolute value of its integer argument.

Example 

   #include <stdio.h>
   #include <stdlib.h>

   int main()
   {
       int numbr, absval;
       numbr = -3;

       absval = abs(numbr);
       printf("The abs of (%d) is %d\n",numbr,absval);
       return EXIT_SUCCESS;
   }

Return Value

   abs returns the absolute value of its integer argument.

See Also

   labs


See Also: labs

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson