What is the use of ios::trunc mode?
To open a file in input mode
To open a file in output mode
To truncate an existing file to half
To truncate an existing file to zero
This question is part of this quiz :