How to create a reference variable in C++
When a variable is declared as a reference, it becomes an alternative name for an existing variable. A variable can be declared as a reference by putting '&' in the declaration.
| Is This Answer Correct ? | 0 Yes | 0 No |
How can an improvement in the quality of software be done by try/catch/throw?
What is the best it certification?
Why do we use structure in c++?
Is java based off c++?
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
What is the error in the code below and how should it be corrected?
what are Operators and explain with an example?
What do you understand by a pure virtual member function?
What are the four partitions in which c++ compiler divides the ram?
What is oops in c++?
When are exception objects created?
Can you please explain the difference between static and dynamic binding of functions?