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 / shikha kataria
this program doesnot contain main() function.
so it cannot run
| Is This Answer Correct ? | 7 Yes | 0 No |
Post New Answer View All Answers
How to demonstrate the use of a variable?
Do you need a main function in c++?
what do you mean by volatile variable?
What is the syntax for a for loop?
Describe delete operator?
What relational operators if statements in c++?
What is the difference between ++ count and count ++?
Is c++ double?
What is the difference between an external iterator and an internal iterator? Describe an advantage of the external iterator.
What does iomanip mean in c++?
Does c++ have arraylist?
What are friend classes? What are advantages of using friend classes?
What does the following code do: int c=0; cout< a) Undefined *Updated* b) 01 c) 00
What is the use of map in c++?
What is the use of endl in c++ give an example?