Login
Remember
Register
Q&A
Questions
Ask a Question
What is the difference between abs() and fabs() functions?
Home
>
Technology
>
What is the difference between abs() and fabs() functions?
0
votes
asked
Nov 8, 2020
in
Technology
by
JackTerrance
(
1.7m
points)
What is the difference between abs() and fabs() functions?
interview-question-answer
technology-questions-answers
Facebook
Twitter
LinkedIn
Email
Add Answer
1
Answer
0
votes
answered
Nov 8, 2020
by
JackTerrance
(
1.7m
points)
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 >.
Related questions
0
votes
1
answer
What is difference between far and near pointers?
asked
Nov 9, 2020
in
Technology
by
JackTerrance
(
1.7m
points)
interview-question-answer
technology-questions-answers
+1
vote
1
answer
What is the difference between variable declaration and variable definition in C-Programming?
asked
Nov 9, 2020
in
Technology
by
JackTerrance
(
1.7m
points)
interview-question-answer
technology-questions-answers
+1
vote
1
answer
What is the difference between actual and formal parameters in C-Programming?
asked
Nov 9, 2020
in
Technology
by
JackTerrance
(
1.7m
points)
interview-question-answer
technology-questions-answers
+1
vote
1
answer
What is difference between including the header file with-in angular braces < > and double quotes “ “?
asked
Nov 9, 2020
in
Technology
by
JackTerrance
(
1.7m
points)
interview-question-answer
technology-questions-answers
0
votes
1
answer
What is the difference between ++a and a++?
asked
Nov 8, 2020
in
Technology
by
JackTerrance
(
1.7m
points)
interview-question-answer
technology-questions-answers
...