Will the following program execute?
No Answer is Posted For this Question
Be the First to Post Answer
What are Binay tress and B trees? Diff between them?
Explain the benefits of proper inheritance.
What is the use of this pointer in c++?
Define virtual constructor.
How the V-Table mechanism works?
what is data Abstraction
What should main() return in c and c++?
Given the following seqment of code containing a group of nested if instructions: y = 9; if ((x==3) || (x == 5)) y++; else if (x == 2) y *= 2; else if (x == 4 ) y-= 7; else y = 8; Enter a segment of code (without any IF statements) that does exectly the same thing using the switch structure.
Explain the advantages of using friend classes.
How does list r; differs from list r();?
class HasStatic { static int I; }; Referring to the sample code above, what is the appropriate method of defining the member variable "I", and assigning it the value 10, outside of the class declaration? a) HasStatic I = 10; b) int static I = 10; c) static I(10); d) static I = 10; e) int HasStatic::I = 10;
How the programmer of a class should decide whether to declare member function or a friend function?