Examveda

What happens if you try to open a file that does not exist in C++ without specifying any flags?

A. The file will be created

B. An error will occur

C. The program will wait indefinitely

D. The file will be opened in read mode

Answer: Option B


Join The Discussion

Related Questions on File Handling in C plus plus