C Programming - Library Functions - Discussion

Discussion Forum : Library Functions - General Questions (Q.No. 1)
1.
What will the function rewind() do?
Reposition the file pointer to a character reverse.
Reposition the file pointer stream to end of file.
Reposition the file pointer to begining of that line.
Reposition the file pointer to begining of file.
Answer: Option
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);
Discussion:
6 comments Page 1 of 1.

Krishna kumar said:   7 years ago
The rewind() function sets the file position to the beginning of the file for the stream pointed to by stream.
(2)

Ajeet Kumar said:   1 decade ago
Please explain about rewind()function with the help of any program.
(2)

Deeksha Mishra said:   8 years ago
Where we use rewind() function in a program? Explain it.
(1)

Janet said:   9 years ago
Can anyone explain rewind () with a simple program?
(1)

Krish said:   1 decade ago
Please explain rewind() function.
(1)

Geetha said:   10 years ago
Explain please?
(1)

Post your comments here:

Your comments will be displayed after verification.