In a program that processes large datasets, you notice that reading the data from a file is a performance bottleneck. Which file handling functions could help improve the performance?

  • fread() and fwrite()
  • fseek() and ftell()
  • fprintf() and fscanf()
  • fgetc() and fputc()
To improve performance when dealing with large datasets, using fread() and fwrite() for bulk reading and writing of data would be beneficial. The other options involve more granular or formatted I/O operations.
Add your answer
Loading...

Leave a comment

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