What does the function ftell(fp) return in file handling?
Which of the following correctly reads a string from file with size limit?
A program needs to update specific bytes in the middle of a file without affecting other data. Which approach is most suitable?
What is the difference between 'rb' and 'r' modes when opening a file?
In a file opened with 'rb+' mode, what operations can be performed?
Advertisement
A program reads structured data: fread(ptr, sizeof(struct), count, fp). If fread() returns a value less than 'count', what could be the reason?
How can you determine the size of a file in bytes using standard C functions?
When writing binary structures with fwrite(), which precaution is essential for portability across different systems?
A program processes a file with multiple reading and writing operations without closing/reopening. What is a potential issue with file buffering?
In competitive exam file handling questions, if fseek() is called with SEEK_CUR, what does it indicate?
A C program must securely close a file and handle potential errors. What is the best approach?
Which scenario would be most problematic when using fprintf() for data that needs exact binary preservation?
For reading a configuration file line-by-line where lines may exceed 256 characters, which function is recommended for ISRO/GATE 2024 exams?
Which file opening mode allows both reading and writing without truncating existing content?
What does fseek(fp, 0, SEEK_END) accomplish?
Which function returns the current position of file pointer?
Which mode opens file in text format with write permission only?
A program needs to append 500 integers to an existing binary file. Which combination is correct?
What happens if you call fclose() on an already closed file pointer?
A program reads struct records using fread(). After reading 100 records of 64 bytes each, what is the total bytes read if successful?