When dealing with large files, what is the advantage of using fread and fwrite over fscanf and fprintf?

  • fread and fwrite allow block-level operations.
  • fscanf and fprintf are more efficient for large files.
  • fread and fwrite provide better error handling.
  • fscanf and fprintf simplify binary file handling.
The correct option is fread and fwrite allow block-level operations. Using these functions, data can be read or written in larger chunks, reducing the number of I/O operations and improving performance when dealing with large files in C.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *