Differentiate abs() function from fabs() function.
S.no | abs() | fabs() |
---|---|---|
1. | Used for integer values | Used only for floating type |
2. | Prototype is under < stdlib.h > | Prototype is under < math.h > |
3. | Returns absolute value of integer | Returns absolute value of a floating-point |
BY Best Interview Question ON 07 Feb 2019