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
which of the following is not an secondary constant a) array b) real c) union
Why would you use pointers in c++?
What is a namespace in c++?
What are c++ data types?
Why was c++ created?
What are the types of array in c++?
Explain what data encapsulation is in c++?
What is function prototyping?
How is computer programming useful in real life?
What do you mean by vtable and vptr in c++?
What are the advantages of using typedef in a program?
What is the use of ::(scope resolution operator)?
What language does google use?
What is the role of static keyword for a class member variable?
Can a program run without main function?