Question 14 To use mathematical functions like sqrt you need

Question 14 To use mathematical functions like sqrt, you need to #include what file? iostream functions cmath mathfunc none of these Done

Solution

Header <cmath> declares a set of functions to compute common mathematical operations and transformations:

math.h is a C library header. Its use is deprecated, but allowed in C++.

cmath is a C++ library header. It has the stuff from math.h in the correct namespace plus a lot more .

So the correct option is cmath

Please comment for any queries/feedbacks.

Thanks,

Anita

 Question 14 To use mathematical functions like sqrt, you need to #include what file? iostream functions cmath mathfunc none of these Done SolutionHeader <cm

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site