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 |
Explain overriding.
What is data binding in c++?
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
what is polymorphism?
What is copy constructor? Can we make copy constructor private in c++?
What is the difference between an external iterator and an internal iterator?
what are the types of Member Functions?
What is a linked list in c++?
What is prototype for that c string function?
What are references in c++? What is a local reference?
What is the difference between a definition and a declaration?
Write a corrected statement in c++ so that the statement will work properly. x + y=z;