List down the guideline that should be followed while using friend function.
No Answer is Posted For this Question
Be the First to Post Answer
Who made c++?
What is jump statement in C++?
What is OOPs
Define the operators that can be used with a pointer.
Show the application of a dynamic array with the help of an example.
What is a tuple c++?
what is the diff b/n c and c++ a. dynamic scoping b. nested switching c. declaration of variables in any code block d. separation of compilation and linking
Will a recursive function without an end condition every quit, in practice a) Compiler-Specific (Some can convert to an infinite loop) b) No c) Yes
What is an adaptor class in c++?
Will a catch statement catch a derived exception if it is looking for the base class?
Describe new operator?
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