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\"; }
};
Answers were Sorted based on User's Feedback
Answer / shikha kataria
this program doesnot contain main() function.
so it cannot run
| Is This Answer Correct ? | 7 Yes | 0 No |
Which operator cannot overload?
Which is the best c++ software?
write a C++ programming :if the no is between 32 to 50 it will be odd.
What are the new features that iso/ansi c++ has added to original c++ specifications?
What is an action class?
What are the uses of typedef in a program?
What are the important differences between c++ and java?
Discuss the effects occur, after an exception thrown by a member function is unspecified by an exception specification?
What will the line of code below print out and why?
What is pure virtual function?
How to allocate memory dynamically for a reference?
What is a singleton c++?