Absolute value of long integer: how to use labs
#include <stdio.h> #include <stdlib.h> int main () { int n, m; n = labs( 65537 ); m = labs( -110000 ); printf ("n = %d \n", n); printf ("m = %d\n", m); return 0; }