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
What is ctime c++?
What are the types of pointer?
How does atoi function work?
Should the member functions which are made public in the base class be hidden?
Does c++ have foreach?
What are libraries in c++?
Explain the difference between using macro and inline functions?
What is the basic difference between C and C++?
What do you mean by inheritance in c++?
What are special characters c++?
How a pointer differs from a reference?
What is else if syntax?
Why is c++ is better than c?
Can you please explain the difference between using macro and inline functions?
Write a note about the virtual member function?