abs - C++ Reference - cplusplus.com - The C++ Resources Network
In C, only the int version exists. For the long int equivalent see labs. For the long long int equivalent see llabs. Example 1 2 3 4 5 6 7 8 9 10 11 12 13 /* abs example */ #include /* printf */ #include /* abs */ int main () { int n,m; n=abs ......