Q.Which header provides setw() and setprecision()?
A) <string>
B) <ctime>
C) <cmath>
D) <iomanip>
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.