1.

How many objects are used for input and output to a string?(a) 1(b) 2(c) 3(d) 4This question was addressed to me during an interview.Question is from File Streams and String Streams topic in section Strings, Streams & Numerics in C++ of C++

Answer»

Right choice is (C) 3

The explanation: The STRINGSTREAM, ostringstream, and istringstream OBJECTS are used for input and OUTPUT to a string.



Discussion

No Comment Found

Related InterviewSolutions