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 enum class in c++?
Can turbo c++ run c program?
Describe the advantages of operator overloading?
Which software is best for c++ programming?
What is the difference between struct and class?
Write a program to find the reverse Fibonacci series starting from N.
What is the use of endl in c++?
Difference between struct and class in terms of access modifier.
How many types of scopes are there in c++?
What is exception handling? Does c++ support exception handling?
List different attributes in C++?
How do you establish an is-a relationship?
Why is c++ considered difficult?
Define a pointer to a data member of the type pointer to pointer?
What problems might the following macro bring to the application?