Thursday 6 November 2014

abs() and fabs()

The function abs() takes an argument of type int and returns its absolute value as an int. Its function prototype is in stdlib.h.

fabs() taks an argument of type double and returns its absolute value as a double. Its function prototype is in math.h.


No comments:

Post a Comment