Which statement opens a file for binary output?
Options
- A. ofstream fout("data.bin", ios::in);
- B. ifstream fin("data.bin", ios::out);
- C. ofstream fout("data.bin", ios::out | ios::binary);
- D. More than one of the above
- E. None of the above
Quiz Practice:
C. ofstream fout("data.bin", ios::out | ios::binary);