Question: Suppose you opened a file to write to ( that already exists ) and wrote a single digit ( say ' 3 ' ) using

Suppose you opened a file to write to (that already exists) and wrote a single digit (say '3') using the following flags: O_WRONLY and O_CREAT. The file already had the following contents: "4 score and twenty years ago...", what's going to happen? what can you do that would make more sense?

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!