Checking if file could be created after the creation object has been made along with filename parameter.
Checking if file could be created using !<obj> check after the creation object has been made along with filename parameter.
( As In Exam - CBSE12A-2018 )
The following C++ code during compilation reports errors as follows:
Er