Is recursion allowed in inline functions?


No Answer is Posted For this Question
Be the First to Post Answer

Post New Answer

More C++ General Interview Questions

What happens when you make call 'delete this;'?

0 Answers  


When do we run a shell in the unix system? How will you tell which shell you are running?

0 Answers  


What is the v-ptr?

0 Answers  


what is data encapsulation in C++?

0 Answers  


Can we declare a base-class destructor as virtual?

0 Answers  






Why #include is used?

0 Answers  


What are the two types of polymorphism?

0 Answers  


What is the oldest programming language?

0 Answers  


What is data types c++?

0 Answers  


Write a note about the virtual member function?

0 Answers  


Why would you use pointers in c++?

0 Answers  


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

2 Answers   Quark,


Categories