Can someone help with this C++ multipls choice question: Suppose that outFile is
ID: 3927635 • Letter: C
Question
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");
Explanation / Answer
outFile.open("outputData.out"); will open the file outputData.out and will associate with the ofStream variable outFile.
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.