What is "strstream" ?



What is "strstream" ?..

Answer / sv



strstream is the class that specializes iostream to use a
strstreambuf for input and output with arrays of characters
in memory.

The class strstream provides functionality to read and
write to an array in memory. It uses a private strstreambuf
object to control the associated array. It inherits from
basic iostream and therefore can use all the formatted and
unformatted output and input functions.

Is This Answer Correct ?    3 Yes 0 No

Post New Answer

More C++ General Interview Questions

Explain overriding.

0 Answers  


What is data binding in c++?

0 Answers  


class A { public: void f(); protected: A() {} A(const A&){} }; Examine the class declaration shown above. Why are the default and copy constructors declared as protected? 1. To ensure that A cannot be created via new by a more derived class 2. To ensure that A cannot be copied 3. To ensure that A cannot be used as a base class except when public inheritance has been used 4. To ensure that A cannot be created/copied outside the inheritance chain 5. To ensure that A cannot be instantiated as a static variable

1 Answers  


what is polymorphism?

14 Answers   Accenture,


What is copy constructor? Can we make copy constructor private in c++?

0 Answers  






What is the difference between an external iterator and an internal iterator?

0 Answers  


what are the types of Member Functions?

0 Answers  


What is a linked list in c++?

0 Answers  


What is prototype for that c string function?

0 Answers  


What are references in c++? What is a local reference?

0 Answers  


What is the difference between a definition and a declaration?

0 Answers  


Write a corrected statement in c++ so that the statement will work properly. x + y=z;

2 Answers  


Categories