Can someone help with this C multipls choice question Suppos

Can someone help with this C++ multipls choice question:

Suppose that outFile is an ofstream variable and output is to be stored in the file outputData.out. Which of the following statements opens the file outputData.out and associatesoutFile to the output file?

outFile.open(\"outputData.out\");

outFile(\"outputData.out\");

open.outFile(\"outputData.out\");

open(outFile,\"outputData.out\");

a.

outFile.open(\"outputData.out\");

b.

outFile(\"outputData.out\");

c.

open.outFile(\"outputData.out\");

d.

open(outFile,\"outputData.out\");

Solution

outFile.open(\"outputData.out\"); will open the file outputData.out and will associate with the ofStream variable outFile.

Can someone help with this C++ multipls choice question: Suppose that outFile is an ofstream variable and output is to be stored in the file outputData.out. Whi

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site