What is a manipulator in c++?
No Answer is Posted For this Question
Be the First to Post Answer
What are the benefits of oop in c++?
What are register variables?
What is the best c c++ compiler for windows?
How do you import payscale data from non SAP to SAP?is it through LSMW or any other way is there?
Explain Memory Allocation in C/C++ ?
What does asterisk mean in c++?
What is a .h file c++?
What are the different operators in C++?
When there is a global variable and local variable with the same name, how will you access the global variable?
What is the difference between set and map in c++?
How to avoid changing constant values?
class Alpha { public: char data[10000]; Alpha(); ~Alpha(); }; class Beta { public: Beta() { n = 0; } void FillData(Alpha a); private: int n; }; How do you make the above sample code more efficient? a) If possible, make the constructor for Beta private to reduce the overhead of public constructors. b) Change the return type in FillData to int to negate the implicit return conversion from "int" to "void". c) Make the destructor for Alpha virtual. d) Make the constructor for Alpha virtual. e) Pass a const reference to Alpha in FillData