Important MCQ

Which header provides sqrt() and pow()?

Q.Which header provides sqrt() and pow()?

A) <string>
B) <iomanip>
C) <iostream>
D) <cmath>
Correct Answer:
Option D
Detailed Explanation:
D) is correct. Header files provide declarations needed by library features. For example, iostream provides cin/cout, iomanip provides setw/setprecision, cmath provides math functions, and string provides the string class.