What is an incomplete type in c++?


No Answer is Posted For this Question
Be the First to Post Answer

Post New Answer

More C++ General Interview Questions

What are literals in C++?

0 Answers   Wipro,


Can a constructor be private?

0 Answers  


Is arr and &arr are same expression for an array?

0 Answers  


Give example of a pure virtual function in c++?

0 Answers  


What are static type checking?

0 Answers  






How do you clear a map in c++?

0 Answers  


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

5 Answers   Quark,


the maximum length of a character constant can be a) 2 b) 1 c) 8

0 Answers  


Explain the difference between class and struct in c++?

0 Answers  


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

2 Answers   Quark,


What is the type of 'this' pointer? When does it get created?

0 Answers  


Is it possible for a member function to use delete this?

0 Answers  


Categories