Machine-translated by Google. Questions are authored in English.
Top

Discussion

Data written into a file using fwrite() can be read back using fscanf()

  • A.True
  • B.False

Answer: B

Correct answer: False

fwrite writes data in its binary representation, while fscanf reads formatted text. The two do not match: an int written by fwrite is four raw bytes, not the digits %d expects. Data written with fwrite must be read back with fread.

No comment is present. Be the first to comment.
Loading…

Post your comment

Please log in or register to post a comment.