What is an incomplete type in c++?
No Answer is Posted For this Question
Be the First to Post Answer
What are literals in C++?
Can a constructor be private?
Is arr and &arr are same expression for an array?
Give example of a pure virtual function in c++?
What are static type checking?
How do you clear a map in c++?
1. What does the following do: void afunction(int *x) { x=new int; *x=12; } int main() { int v=10; afunction(&v); cout<<v; } a) Outputs 12 b) Outputs 10 c) Outputs the address of v
the maximum length of a character constant can be a) 2 b) 1 c) 8
Explain the difference between class and struct 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 is the type of 'this' pointer? When does it get created?
Is it possible for a member function to use delete this?