Vidyalelo
C++ Programming · Q30

File Handling in C++

Programming · C++ Programming · question 30

Q30

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
Answer
C.
The program will wait indefinitely
D.
The file will be opened in read mode

Answer: Option B

Solution

Answer: Option B
No explanation is given for this question Let's Discuss on Board