Which of the following mode argument is used to truncate? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

Which of the following mode argument is used to truncate?

Answer is w but what is truncate in c language?

29th Jun 2019, 11:26 AM
Shubham Tandale
Shubham Tandale - avatar
2 Answers
+ 6
I think this was a C language challenge quiz question. I think it is about the mode argument for the fopen function where write(w) mode may overwrite existing data and truncate it. But I agree that the question is not clear at all.
29th Jun 2019, 2:18 PM
Sonic
Sonic - avatar
0
W
29th Nov 2022, 3:52 PM
Dmitrii Ulianov
Dmitrii Ulianov - avatar