To write data to a file, the file must be opened in ________ mode.
- w
- r
- a
- write
The correct option is a) w. In C, to write data to a file, the file must be opened in write mode (w).
Loading...
Related Quiz
- You are working on a software project in C++ that requires sorting a list of items in multiple ways. How could you leverage function overloading to achieve this?
- What will happen if the condition in a 'while' loop is initially false?
- What is the significance of using pointers to arrays in C?
- When dealing with an array of structures in C, what does each element of the array represent?
- In a union, all members share the same ________.