1.

what is the function of fputs()?(a) read a line from a file(b) read a character from a file(c) write a character to a file(d) write a line to a fileThe question was posed to me in exam.The origin of the question is File Operations in division Input and Output in C of C

Answer»

The correct option is (d) WRITE a line to a file

Easy explanation - The fputs()is USED to write a line to a file. fputs()syntax can be WRITTEN as

int fputs(CONST char *str, FILE *stream);



Discussion

No Comment Found

Related InterviewSolutions