Abs - Returns Absolute Value of an Integer in C

Makes the input number Absolute
Abs - Returns Absolute value of an Integer
abs() function is used to display the negative values into the positive representation. Which takes the negative values as the function parameters


Syntax:
abs(int value);

//Abs - Returns Absolute value of an Integer
#include<stdio.h>
#include<conio.h>

int main ()
{
    int x;
    x=abs(-14);
    //printf("Absolute value of an Integer");
    printf ("x=%d\n",x);
    return 0;
}


Output:
14