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 |
True or false, if you keep incrementing a variable, it will become negative a) True b) False c) It depends
structure that describe a hotel with name, address,rooms and number of rooms
What is microsoft c++ redistributable?
Why use of template is better than a base class?
Can I have a reference as a data member of a class? If yes, then how do I initialise it?
Can constructor be static in c++?
What is a storage class used in c++?
Why is that unsafe to deal locate the memory using free( ) if it has been allocated using new?
Is c++ a low level language?
Can I learn c++ as my first language?
What is the best way to take screenshots of a window with c++ in windows?
write a program to insert an element into an array