Home / C Programming / Library Functions :: Discussion

Discussion :: Library Functions

  1. What will the function rewind() do?

  2. 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 begining of that line.
    D.
    Reposition the file pointer to begining of file.

    View Answer

    Workspace

    Answer : Option D

    Explanation :

    rewind() takes the file pointer to the beginning of the file. so that the next I/O operation will take place at the beginning of the file.
    Example: rewind(FilePointer);


Be The First To Comment