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 |
Write a program to show polymorphism in C++?
const char * char * const What is the differnce between the above two?
Which bit wise operator is suitable for turning off a particular bit in a number?
Why is c++ not purely object oriented?
program explaining feautures of c++
What do manipulators do?
what is scupper?
What are the defining traits of an object-oriented language?
I want explanation for this assignment: how to connect mysql database using c/c++,please explain this detailly?
What do you mean by inheritance in c++? Explain its types.
What is the use of string in c++?
What is guard code in c++?