1.

What is the return type open() method?(a) int(b) char(c) bool(d) floatI got this question by my school principal while I was bunking the class.I want to ask this question from File Handling topic in chapter Strings, Streams & Numerics in C++ of C++

Answer»

The correct OPTION is (c) bool

The EXPLANATION: open() METHOD returns a bool value indicating whether the FILE is opened or some error has occurred.



Discussion

No Comment Found

Related InterviewSolutions