Can we get the value of ios format flags?
Answer / Rajesh Kumar Singh
Yes, you can get the value of ios format flags using the manipulator 'ios::fmtflags'. You can save the current format flags with 'std::ios_base::fmtflags saved = std::cout.flags();', and restore it later with 'std::cout.flags(saved);'.
| Is This Answer Correct ? | 0 Yes | 0 No |
Explain how an exception handler is defined and invoked in a Program.
How the programmer of a class should decide whether to declare member function or a friend function?
what do you mean by volatile variable?
How do you show the declaration of a virtual constructor?
What is the use of endl?
Can a constructor return a value?
What are destructors?
When is the copy constructor called?
What is late binding c++?
How to change constant values?
When we use Abstract Class and when we use Interface?where we will implement in real time?
What is the purpose of template?