Which of the following is used to close a file in C++?
A. close()
B. closeFile()
C. fclose()
D. file.close()
Answer: Option D
Related Questions on File Handling in C plus plus
Which header file is required for file handling in C++?
A. <iostream>
B. <fstream>
C. <file>
D. <filestream>

Join The Discussion