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\"; }
};
Answer Posted / shikha kataria
this program doesnot contain main() function.
so it cannot run
| Is This Answer Correct ? | 7 Yes | 0 No |
Post New Answer View All Answers
Perform addition, multiplication, subtraction of 2-D array using Operator Overloading.
What does int * mean in c++?
Define virtual constructor.
What is the difference between multiple and multilevel inheritance in c++?
What is buffering in c++?
What is meant by a delegate?
Why can’t you call invariants() as the first line of your constructor?
What are associate containers?
What do nonglobal variables default to a) auto b) register c) static
What is the difference between while and do while loop?
Define vptr.
Can static member variables be private?
How c functions prevents rework and therefore saves the programers time as wel as length of the code ?
Write my own zero-argument manipulator that should work same as hex?
write a corrected statement so that the instruction will work properly. if (4 < x < 11) y = 2 * x;