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 |
What is c++ similar to?
What do you mean by funtion prototype?
How can you quickly find the number of elements stored in a static array? Why is it difficult to store linked list in an array?
what is the size of a class which contains no member variables but has two objects??? is it 1 or 2??
What is pure virtual function?
write a corrected statement so that the instruction will work properly. if (4 < x < 11) y = 2 * x;
What is the use of "new" operator?
what are the iterator and generic algorithms.
Please post the model question paper of hal?
Check for Balanced Parentheses using Stack?
What is a loop? What are different types of loops in c++?
this is to swap to strings....but in output the whole strings are swapped leaving first as it is...why it is so #include<iostream.h> int main() { char a[]="ajeet"; char b[]="singh"; long x=*a; long y=*b; cout<<x<<":"<<y; x=x+y; y=x-y; x=x-y; *a=x; *b=y; cout<<x<<":"<<y; cout<<&a<<endl; cout<<&b<<endl; }