What is a character in c++?
No Answer is Posted For this Question
Be the First to Post Answer
What are static variables?
You're given an array containing both positive and negative integers and required to find the sub-array with the largest sum (O(N) a la KBL). Write a routine in C for the above.
What is a class definition?
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 size_type?
Should the this pointer can be used in the constructor?
Explain how would you handle a situation where you cannot call the destructor of a local explicitly?
what do you mean by volatile variable?
What are enumerations?
Should I learn c or c++ first?
What is a class template in c++?
In the derived class, which data member of the base class are visible?