Solved

Which of the Following Statements Opens the File Info

Question 16

Multiple Choice

Which of the following statements opens the file info.txt for both input and output?


A) dataFile.open("info.txt", ios::in && ios::out) ;
B) dataFile.open("info.txt", ios::in , ios::out) ;
C) dataFile.open("info.txt", input || output) ;
D) dataFile.open("info.txt", ios::in | ios::out) ;

Correct Answer:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions