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 apps are written in c++?
Write a Program to find the largest of 4 no using macros.
What is the real purpose of class – to export data?
How do you instruct your compiler to print the contents of the intermediate file showing the effects of the preprocessor?
Explain public, protected, private in c++?
What data encapsulation is in c++?
Define a pdb file.
How a macro differs from a template?
What does extern mean in a function declaration in c++?
What is the difference between an enumeration and a set of pre-processor # defines?
how to connect with oracle 9i with server in socket program in c/c++
Explain the use of virtual destructor?
What is the basic structure of a c++ program?
Can you be bale to identify between straight- through and cross- over cable wiring? And in what case do you use straight- through and cross-over?
Differentiate between an inspector and a mutator ?