Multiple choice

Name the header file which is needed for the functions like read() and open()?

  1. iomanip.h

  2. stdio.h

  3. fstream.h

  4. iostream.h

Reveal answer Fill a bubble to check yourself
C Correct answer
Explanation

The fstream.h header file (or in standard C++) provides classes and functions for file input/output operations. The read() function reads data from a file, and open() opens a file stream. iostream.h handles console I/O, stdio.h is for C-style I/O, and iomanip.h is for I/O formatting.