1.

_____removes the named file, so that a subsequent attempt to open it will fail.(a) remove(const *filename)(b) remove(filename)(c) remove()(d) fclose(filename)The question was asked in exam.My question is from File Operations topic in chapter Input and Output in C of C

Answer»

Correct choice is (a) REMOVE(const *filename)

EXPLANATION: remove(const *filename)removes the named FILE, so that a SUBSEQUENT attempt to OPEN it will fail. It returns non-zero of the attempt fails.



Discussion

No Comment Found

Related InterviewSolutions