Multiple choice

Which of the following file control functions is used to reposition the file pointer and returns 0 on success and non-zero value on failure?

  1. fseek()

  2. rewind()

  3. feof()

  4. ungetc()

  5. fopen()

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

This file control function is used to reposition the file pointer and returns 0 on success and non-zero value on failure.