Can you please explain the difference between using macro and inline functions?
No Answer is Posted For this Question
Be the First to Post Answer
Explain the use of virtual destructor?
class Foo { const int x; protected: Foo(int f); ~Foo(); }; Foo f; Referring to the sample code above, why will the class declaration not compile? a) The variable x is const. b) The destructor is protected. c) The destructor is not public. d) The constructor is protected. e) There is no default constructor.
Consider a c++ template funtion template<class T> T& Add(T a, T b){return a+b ;} if this function is called as T c = Add("SAM", "SUNG"); what will happen? What is the problem in the template declaration/ How to solve the problem.
What is c++ hiding?
Why we use #include iostream in c++?
If a base class declares a function to be virtual, and a derived class does not use the term virtual when overriding that class, is it still virtual when inherited by a third-generation class?
Explain deep copy and a shallow copy?
Why is it difficult to store linked list in an array?
What type of question are asked in GE code writing test based on c++ data structures and pointers?
What is a null object in c++?
Show the declaration for a static function pointer.
What is a modifier in c++?