What is the output of this prog. ?
struct A { A(){ cout << \"A\"; } };
struct B { B(){ cout << \"B\"; } };
struct C { C(){ cout << \"C\"; } };
struct D { D(){ cout << \"D\"; } };
struct E : D { E(){ cout << \"E\"; } };
struct F : A, B
{
C c;
D d;
E e;
F() : B(), A(),d(),c(),e() { cout << \"F\"; }
};
Answers were Sorted based on User's Feedback
Answer / shikha kataria
this program doesnot contain main() function.
so it cannot run
Is This Answer Correct ? | 7 Yes | 0 No |
What is the difference between set and map in c++?
Explain how the virtual base class is different from the conventional base classes of the opps.
Explain about vectors in c ++?
What do you know about near, far and huge pointer?
What does new do in c++?
What is flag in computer?
Which uses less memory? a) struct astruct { int x; float y; int v; }; b) union aunion { int x; float v; }; c) char array[10];
What is auto type c++?
What are static type checking?
What is the Standard Template Library?
If you push the numbers (in order) 1, 3, and 5 onto a stack, which pops out first a) 1 b) 5 c) 3
Can you sort a set c++?