Which standard C++ header file is commonly used for input and output with cin and cout?

Options

  • A. <stdio.h>
  • B. <string.h>
  • C. <iostream>
  • D. More than one of the above
  • E. None of the above

Correct Answer (Detailed Explanation is Below)

C. <iostream>

Detailed Explanation

Correct Answer: Option C — iostream

Explanation: The iostream header provides standard input and output stream objects, including cin and cout. It is included using #include <iostream>.