When should you use global variables?
No Answer is Posted For this Question
Be the First to Post Answer
Is it possible to provide default values while overloading a binary operator?
What is scope resolution operator in c++ with example?
What is a hash function c++?
Can we remove an element in a single linked list without traversing? Lets suppose the link list is like this 1 2 3 4 5 6 We need to remove 4 from this list (without traversing from beginning) and the final link list shud be 1 2 3 5 6 only thing we know is the pointer to element "4". How can we remove "4" and link "3" to "5"?
What are the benefits of oop in c++?
Where do I find the current c or c++ standard documents?
What is the difference between the compiler and the preprocessor?
Is c++ harder than java?
Explain how to initialize a const data member.
How do you define a class in c++?
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
What are different types of polymorphism supported by C++