Question: 42. The C++ absolute value function fabs () returns absolute value of the number (i.e. the number if the number is positive and negative of
42. The C++ absolute value function fabs () returns absolute value of the number (i.e. the number if the number is positive and negative of the number if the number is negative), but it requires the emath library file Assume yo do not have access to the math library file and write a code segment that could be used to replace the statement fabs (x) ; (5 points)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
