Assuming x and y are variables of type float, the expression:
sqrt(fabs(3.8 * x + 9.4 * y))
, is a valid use of the sqrt and fabs library functions.
True or False?
True is the correct answer for the above question.
Explanation:
The "fabs" is a predefined function of c language, which gives the absolute value of any number. For example, if x is a value of double type then its absolute value is "|x|" and it is written by the help of "fabs" function is: "fabs(x)".
The sqrt function is also a predefined function of c-language, which gives the square root of any number.
To use this type of function firstly the user needs to include the header file as "math.h".
The above question-statement states that the "sqrt(fabs(3.8 * x + 9.4 * y))" is valid for the x and y variable of type double. It is the correct statement. Hence True is the correct answer to the above question.