Which of the following is the proper class name or type to u

Which of the following is the proper class name (or type) to use when creating an object to associate with an input file name? ifstream ofstream isteam input

Solution

The answer for the above question is A (ifstream)

Explanation:

An object is a variable that has functions associated with it, as well as the ability to hold data values.

Mainly c++ has two classes of objects to handle file I/O Operations

The definitions of these file streams are located in the header file fstream and so it shouldbe included.

Once they have been connected to the proper files, these input file streams and outpu file streams can bue used in the same way that the standard input stream cin and output stream cout are used.

 Which of the following is the proper class name (or type) to use when creating an object to associate with an input file name? ifstream ofstream isteam inputSo

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site