What is the difference between cin.read() and cin.getline()?
No Answer is Posted For this Question
Be the First to Post Answer
Can you be able to identify between straight- through and cross- over cable wiring? And in what case do you use straight- through and cross-over?
What is iostream in c++ used for?
Explain about templates of C++.
How delete [] is different from delete?
Explain virtual destructor?
Can you explain the term "resource acquisition is initialization?"
What are multiple inheritances (virtual inheritance)? What are its advantages and disadvantages?
write the programme that convert a interger to biniry number
How does work in c++?
What is java and c++?
What are associate containers?
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