Write a program to interchange 2 variables without using the third one.
No Answer is Posted For this Question
Be the First to Post Answer
What is the difference between = and == in C?
20 Answers Christ University, Intel,
What does ios :: app do in c++?
What are guid?
What are manipulators used for?
Do you know what are static and dynamic type checking?
When do we run a shell in the unix system?
What is a loop? What are different types of loops in c++?
Is c++ vector dynamic?
Write a program to concatenate two strings.
What is virtual constructor paradigm?
Out of fgets() and gets() which function is safe to use?
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