https://quizack.com/system-programming/mcq/what-is-the-effect-of-executing-the-following-system-call-on-the-file-test-txt
What is the effect of executing the following system call on the file "test.txt"?
open("test.txt", O_TRUNC)
The file is truncated to the nearest block size before returning.
The file is created before returning.
The file is opened.
If test.txt exists, the file is truncated to 0 bytes before returning.
Answer:
If test.txt exists, the file is truncated to 0 bytes before returning.
Note: This Question is unanswered, help us to find answer for this one
More System Programming MCQ Questions