To use either an input or output file, the program must include the _____ header file A. filestream.h B. fstream.h C. instream.h D. inoutstream.h E. iostream.h

[amp_mcq option1=”filestream.h” option2=”fstream.h” option3=”instream.h” option4=”inoutstream.h E. iostream.h” correct=”option1″]

The correct answer is E. iostream.h

The iostream.h header file is a C++ header file that defines the basic input/output stream classes. These classes are used to read and write data from files and from the standard input and output streams.

The filestream.h header file is a C++ header file that defines the file stream classes. These classes are used to read and write data from files.

The instream.h header file is a C++ header file that defines the input stream classes. These classes are used to read data from the standard input stream.

The inoutstream.h header file is a C++ header file that defines the input/output stream classes. These classes are used to read and write data from the standard input and output streams.

The iostream.h header file is the most general of the four header files, and it includes the definitions of the file stream classes, the input stream classes, and the output stream classes. Therefore, it is the correct header file to include in a program that needs to use either an input or output file.

Exit mobile version