adplus-dvertising
frame-decoration

Question

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

a.

It writes "Copying!" into the file pointed by fp

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

Posted under C Programming

Answer: (a).It writes "Copying!" into the file pointed by fp

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. What does the following segment of code do?