Explain dangling pointer.
No Answer is Posted For this Question
Be the First to Post Answer
write a program that takes two numbers from user that prints the smallest number
How the delete operator differs from the delete[]operator?
What is binary object model?
What is string in c++ programming?
Can constructor be private 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
Can we declare destructor as static? Explain?
Explain what are the sizes and ranges of the basic c++ data types?
Explain differences between alloc() and free()?
How many storage classes are available in C++?
Why is main function important?
What is constructor in C++?