Vidyalelo
C Programming · Q66

File Input Output

Programming · C Programming · question 66

Q66

What does the following segment of C code do? fprintf(fp, "Copying!");

A.
It writes "Copying!" into the file pointed by fp
Answer
B.
It reads "Copying!" from the file and prints on display
C.
It writes as well as reads "Copying!" to and from the file and prints it
D.
None of the mentioned

Answer: Option A

Solution

Answer: Option A
No explanation is given for this question Let's Discuss on Board