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 / amit prakash
der's no main function so it cant run...
| Is This Answer Correct ? | 3 Yes | 0 No |
Post New Answer View All Answers
What ANSI C++ function clears the screen a) clrscr() b) clear() c) Its not defined by the ANSI C++ standard
Explain "const" reference arguments in function?
Does c++ vector allocate memory?
How the keyword struct is different from the keyword class in c++?
What is a .h file c++?
What is a unnitialised pointer?
What are the uses of pointers?
Is c++ a good first language to learn?
How can you quickly find the number of elements stored in a static array?
What is c++ w3school?
What do you mean by “this” pointer?
How delete [] is different from delete?
Are iterators pointers?
Can the creation of operator** is allowed to perform the to-the-power-of operations?
Can a program run without main?