What does flush do?



What does flush do?..

Answer / Sunita Yadav

In C++, the "std::flush" is a manipulator for the standard output stream (cout) or input/output streams. It forces the buffer to be flushed immediately and everything that's been buffered will be sent to the output device.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More C++ General Interview Questions

i want to know how to copy arrary without using any method or function. I have tried the below using System; class e4 { static void Main(string[] args) { int a,b; int[ ] m= new int[5]; int[ ] n= new int[5]; for(a=0;a<=4;a++) { Console.WriteLine("enter any value"); m[a]=Convert.ToInt32(Console.ReadLine()); m[a]=n[a]; } for(b=0;b<=4;b++) { Console.WriteLine(n[b]); } } } but it will give wrong result can anyone solve this problem

1 Answers   Reliance,


What is the difference between containment and delegation?

1 Answers  


Can member functions be private?

1 Answers  


If a function doesn’t return a value, how do you declare the function?

1 Answers  


Mention the purpose of istream class?

1 Answers  


What are the advantages of pointers?

1 Answers  


Is c++ a low level language?

1 Answers  


What are c++ variables?

1 Answers  


What is the Standard Template Library?

1 Answers  


Explain shallow copy?

1 Answers  


In the derived class, which data member of the base class are visible?

1 Answers  


Define upcasting.

1 Answers  


Categories