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 token c++?
What is null c++?
Should the this pointer can be used in the constructor?
How do c++ struct differs from the c++ class?
Will c++ be replaced?
What is class definition in c++ ?
What is the difference between an external iterator and an internal iterator? Describe an advantage of the external iterator.
Write about the access privileges in c++ and also mention about its default access level?
What is an overflow error?
What is the default width for ouputting a long integer using the insertion operator?
What are the advantages of c++ over c?
explain the reference variable in c++?
What are the uses of static class data?
can any one help to find a specific string between html tags
which is changed to a sting..
weather.html looks (for location) is
What is the disadvantage of using a macro?