0
What is the difference between abs() and fabs() functions?

Open 1 Answers 32 Views Technology

What is the difference between abs() and fabs() functions?

1 Answer

0
Both functions are to retrieve absolute value. abs() is for integer values and fabs() is for floating type numbers. Prototype for abs() is under the library file < stdlib.h > and fabs() is under < math.h >.
by (274k points)
...