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

Discussion

What will the function rewind() do?

  • A.Reposition the file pointer to a character reverse.
  • B.Reposition the file pointer stream to end of file.
  • C.Reposition the file pointer to the beginning of that line
  • D.Reposition the file pointer to the beginning of the file

Answer: D

Correct answer: Reposition the file pointer to the beginning of the file

rewind(fp) moves the file position indicator back to the beginning of the file and clears the error and end-of-file flags. It is equivalent to fseek(fp, 0L, SEEK_SET), except that it returns nothing and resets the flags.

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

Post your comment

Please log in or register to post a comment.