What is abs() Function?
The abs() function is used to find the absolute value of an integer value. The absolute value is a having no sign. The declaration of abs() function is as follows:int abs (int);
The declaration of abs() function indicates that an integer parameter is passed to this function. The output returned by this function is also of "int" type.The general syntax to call this function is given below:-
var = abs (x);
In the above syntax: