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






llabs: returns the absolute value of num


    

//Declaration:  long long int llabs(long long int num); 
  

  #include <stdlib.h>
  #include <stdio.h>
 
  int main(void){

    char num[80];

    printf("a number:");
    gets(num);

    return llabs(atol(num));
  }

         
/*
a number:2
*/         

           
       








Related examples in the same category