abs: returns the absolute value of num : abs « stdlib.h « C / ANSI-C






abs: returns the absolute value of num


    

//Header file: #include <stdlib.h>  
//Declaration: int abs(int num); 

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

  int main(void){

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

  }

         
/*
1*/ 

           
       








Related examples in the same category