C Programming - Library Functions - Discussion

1. 

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

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);

Ajeet Kumar said: (Jun 1, 2011)  
Please explain about rewind()function with the help of any program.

Krish said: (Jun 24, 2013)  
Please explain rewind() function.

Geetha said: (Feb 20, 2016)  
Explain please?

Janet said: (Mar 19, 2017)  
Can anyone explain rewind () with a simple program?

Deeksha Mishra said: (Aug 10, 2017)  
Where we use rewind() function in a program? Explain it.

Krishna Kumar said: (Oct 20, 2018)  
The rewind() function sets the file position to the beginning of the file for the stream pointed to by stream.

Post your comments here:

Name *:

Email   : (optional)

» Your comments will be displayed only after manual approval.