In the context of file handling, what is the advantage of using binary files over text files?
- Data preservation
- Human readability
- Portability
- Smaller file size
One of the advantages of using binary files over text files in file handling is data preservation. Binary files store data as a sequence of bytes, preserving the exact representation of data without any character encoding or formatting. This makes them suitable for storing complex data structures and preserving data integrity.
Loading...
Related Quiz
- What is the purpose of the 'sizeof' operator in C?
- The #undef directive is used to ________ a macro defined by #define.
- In C, if you want to ensure that all the data written to a file is physically stored, you can use the ______ function.
- What is the lifetime of a static variable in a C program?
- Pointer arithmetic in C is based on ________, which means that the pointer is incremented or decremented by the size of the data type it points to.