Programming Reference/Librarys
Question & Answer
Q&A is closed
#include <stdio.h> /* including standard library */ //#include <windows.h> /* uncomment this for Windows */ /* for printf */ #include <stdlib.h> int main( void ) { int i = -42; printf("abs from i = %d\n", abs(i)); return 0; }
user@host:~/code-reference.com# ./abs abs from i = 42