Which of the following is the default mode of the opening using the fstream class?
A. ios::in
B. ios::out
C. ios::in|ios::out
D. ios::trunc
Answer: Option C
A. ios::in
B. ios::out
C. ios::in|ios::out
D. ios::trunc
Answer: Option C
Which header file is required for file handling in C++?
A. <iostream>
B. <fstream>
C. <file>
D. <filestream>
Join The Discussion