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

1 thought on “What is the use of ios::trunc mode?”

Leave a Comment