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 is unary operator? List out the different operators involved in the unary operator.
Explain the purpose of the keyword volatile.
What is the use of endl?
Which is most difficult programming language?
Is sorted c++?
What is enum c++?
How many types of modularization are there in c++?
Is c++ a software?
What is the latest c++ version?
Can circle be called an ellipse?
Why c++ is faster than java?
Can a built-in function be recursive?
In c++, what is the difference between method overloading and method overriding?
What is a container class?
What are the various compound assignment operators in c++?