abs : abs « stdlib.h « C Tutorial






ItemValue
Header filestdlib.h
Declarationint abs(int num);
Returnreturns the absolute value of num.


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

  int main(void){

    printf("%d",abs(-1));

  }
1








23.2.abs
23.2.1.abs