linked linked linkedin whatsapp remove
Feedback

System Programming Quiz System Programming

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

Related System Programming Questions and Answers: