1.

Which one of the following is correct syntax for openinga file.(a) FILE *fopen(const *filename, const char *mode)(b) FILE *fopen(const *filename)(c) FILE *open(const *filename, const char *mode)(d) FILE open(const*filename)The question was asked in final exam.My question is based upon File Operations in section Input and Output in C of C

Answer»

Correct choice is (a) FILE *fopen(const *FILENAME, const CHAR *mode)

Explanation: fopen() OPENS the named file, and RETURNS a stream, or NULL of the attempt fails.



Discussion

No Comment Found

Related InterviewSolutions