When a file is opened in ________ mode, it is opened for both reading and writing in binary format.
- binary_rw
- r+b
- rb+
- rw
Opening a file in r+b mode in C allows for both reading and writing operations in binary format. The 'r' stands for read, and the 'b' indicates binary mode, making it suitable for combined read and write tasks.
Loading...
Related Quiz
- How is data stored in a two-dimensional array in memory?
- When declaring a variable in C, what does the 'static' keyword do to the variable's lifetime?
- You are tasked with implementing a plugin system in a software application where different plugins can be loaded and executed at runtime. How can function pointers be utilized in this scenario?
- The C function ________ is used to compare two strings lexicographically.
- You are tasked with creating an easy-to-read API for a library written in C. What feature can you use to make the data types and function signatures more user-friendly?