fseek() should be preferred over rewind() mainly because
(A) rewind() doesn’t work for empty files
(B) rewind() may fail for large files
(C) In rewind, there is no way to check if the operations completed successfully
(D) All of the above
Answer: (C)
Explanation: Please see fseek() vs rewind() in C
Quiz of this Question
Attention reader! Don’t stop learning now. Get hold of all the important DSA concepts with the DSA Self Paced Course at a student-friendly price and become industry ready.
Recommended Posts:
- C | File Handling | Question 1
- C | File Handling | Question 2
- C | File Handling | Question 3
- C | File Handling | Question 4
- Four File Handling Hacks which every C/C++ Programmer should know
- Basics of File Handling in C
- Basics of File Handling in C#
- C++ | Exception Handling | Question 1
- C++ | Exception Handling | Question 3
- C++ | Exception Handling | Question 4
- C++ | Exception Handling | Question 5
- C++ | Exception Handling | Question 6
- C++ | Exception Handling | Question 7
- C++ | Exception Handling | Question 8
- C++ | Exception Handling | Question 9
- C++ | Exception Handling | Question 10
- C++ | Exception Handling | Question 11
- C++ | Exception Handling | Question 12
- C program to copy contents of one file to another file
- C program to check whether the file is JPEG file or not

