1.

Which member function is used to determine whether the stream object is currently associated with a file?(a) is_open(b) buf(c) string(d) is_outThis question was addressed to me in homework.My enquiry is from File Streams and String Streams topic in division Strings, Streams & Numerics in C++ of C++

Answer»

Right option is (a) is_open

To explain: The MEMBER function is_open can be USED to DETERMINE whether the STREAM object is CURRENTLY associated with a file.



Discussion

No Comment Found

Related InterviewSolutions