A file is opened in binary mode. How will fseek() behave differently compared to text mode?
What will fseek(fp, 0, SEEK_END) do?
A program uses fprintf() to write 1000 integers to a file but doesn't call fclose(). What could happen?
Which function reads formatted data from a file?
What is returned by fopen() if file opening fails?
Advertisement
A binary file contains 500 structures of size 32 bytes each. To skip the first 10 structures and read the 11th one, which fseek() call is correct?
Which of the following modes will truncate an existing file?
A program reads a CSV file with fgets() storing data in a 256-byte buffer. Some lines exceed 255 characters. How should this be handled?
What does fflush(fp) do when fp is a file pointer?
A program writes binary data using fwrite() but reads it back with fprintf(). What will happen?
In a file opened in "a+" mode, where does the file pointer initially point?
A program uses fgetc() to read 100,000 characters from a file sequentially. Which alternative would be more efficient?
What does the third parameter of fseek() represent?
A large binary file of 10GB is being processed. Reading entire file into memory is impossible. Which approach is best?
Which header file must be included to use file handling functions in C?
What does the 'w+' mode do when opening a file with fopen()?
Which function is used to write a single character to a file?
What is the return value of feof(fp) when the end of file is reached?
In C file handling, what does rewind(fp) do?
Which mode allows both reading and appending without truncating existing content?