What is the difference between an external iterator and an internal iterator?
No Answer is Posted For this Question
Be the First to Post Answer
what is an array
Are strings immutable in c++?
what does the following statement mean? int (*a)[4]
Which bit wise operator is suitable for turning off a particular bit in a number?
write a C++ programming using for loop: * * * * * * * * * *
Describe private, protected and public – the differences and give examples.
What is an iterator class in c++?
What is function overloading c++?
What does new return if there is insufficient memory to make your new object?
founder of c++
7 Answers Microtek, TCS, TeleCommand,
What is #include sstream?
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