answersLogoWhite

0

fabs function can be found in math.h header and you need to include it if you wish to use it .

fabs is used to find absolute value of floating point values.

example:

#include <stdio.h>

#incude <math.h>

int main(void)

{

double x;

x = -3.0L;

printf("%lf", fabs(x));

return(0);

}

User Avatar

Wiki User

12y ago

What else can I help you with?

Related Questions

What is the meaning of fabs in quadratic equation in c program?

In the C Programming Language, the fabs function returns the absolute value of a floating-point number


Why you use void res in c programming?

since, the word 'void' in C programming language means that it does not return any value to the user or calling function....this is usually used to specify a type of function...... for this reason w use 'void'in c program..


What is d command for squareroot in C programming?

There are no commands in C-programming, you should use function sqrt from math.h


What is the function in toupper in C programming?

toupper is used to change the case of given character to upper case


What is a sizeof function in C programming?

Sizeof is an example.


Is combination a library function in c language of programming?

No.


What is put pixel?

The putpixel function is a specific function that is used in C++ programming. This command function is supposed to do point plotting via color definition of its specific points.


What is the C language used for?

Programming.


What is fncn in C programming?

1. identifier 2. short for function


What is the function of square root in C programming?

it is sqrt in header math.h


What is a C compiler as used in C programming?

In C programming, C compiler is user to translate C source into C object module.


What is the difference between a precondition and postcondition in C programming?

In C programming, a precondition is a condition that must be true before a function is called, while a postcondition is a condition that is guaranteed to be true after the function has been executed.