What is the use of ios::trunc mode?
A. To open a file in input mode
B. To open a file in output mode
C. To truncate an existing file to half
D. To truncate an existing file to zero
Answer: Option D
Related Questions on File Handling in C plus plus
Which header file is required for file handling in C++?
A. <iostream>
B. <fstream>
C. <file>
D. <filestream>
Join The Discussion