0 votes
17 views

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

in Technology by (191k points)

1 Answer

0 votes
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 (191k points)

Related questions

+1 vote
1 answer 29 views
0 votes
1 answer 9 views
0 votes
1 answer 11 views
0 votes
1 answer 118 views
0 votes
1 answer 7 views
+1 vote
1 answer 18 views
0 votes
1 answer 32 views
0 votes
1 answer 9 views
9 views asked 3 days ago in Technology by JackTerrance (191k points)
0 votes
1 answer 24 views
...