What is a c++ vector?
No Answer is Posted For this Question
Be the First to Post Answer
What is data hiding c++?
What is private public protected in c++?
Write some differences between an external iterator and an internal iterator? Describe the advantage of an external iterator.
Explain function overloading and operator overloading.
What do nonglobal variables default to a) auto b) register c) static
Can char be a number c++?
Reads in the size of a square from the screen; 2. Prints a hollow square of that size out of “-“, “|” and blanks on screen; 3. Prints the same hollow square onto a text file. Your program should work for squares of all side sizes between 1 and 20. --- │ │ │ │ │ │ ---
What is flush () in c++?
Difference between linked list and array?
Refer to a name of class or function that is defined within a namespace?
How is new() different from malloc()?
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