Which of the following statement are true? (Select two answers)

Which of the following statement are true? (Select two answers)
A . closing an open file is performed by the closefile ( ) function
B . the second open ( ) argument describes the open mode and defaults to ‘w’
C . if open ( ) ‘s second argument is ‘r’ the file must exist or open will fail
D . if open ( )’s second argument is ‘w’ and the invocation succeeds, the previous file’s content is lost

Answer: C,D

Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments