in C++ , the word plus plus who found this?
Answers were Sorted based on User's Feedback
What happens if an exception is throws from an, object's constructor and object's destructor?
How do you invoke a base member function from a derived class in which you have not overridden that function?
Assume an array of structure is in order by studentID field of the record, where student IDs go from 101 to 500. Write the most efficient pseudocode algorithm you can to find the record with a specific studentID if every single student ID from 101 to 500 is used and the array has 400 elements. Write the most efficient pseudocode algorithm you can to find a record with a studentID near the end of the IDs, say in the range from 450 to 500, if not every single student ID in the range of 101 to 500 is used and the array size is only 300
Incase of a function declaration, what is extern means?
What are advantages of C++ when comparing with C?
18 Answers HP, iGate, TCS,
What are associate containers?
Which is most difficult programming language?
How can we check whether the contents of two structure variables are same or not?
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 is the purpose of extern storage specifier?
Hi i need to Acess a variable "int Intval" in the below mentioned code .How to Access it guys i am waiting for your reply
Explain the difference between overloading and overriding?