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
What is the difference between prefix and postfix versions of operator++()?
Write a program using GUI concept for the scheduling algorithms in Operating system like SJF,FCFS etc..
What are virtual constructors/destructors?
What is a container class? What are the types of container classes in c++?
What is the use of "new" operator?
Is java a c++?
What is a far pointer? where we use it?
Can a program run without main function?
Write my own zero-argument manipulator that should work same as hex?
Do class declarations end with a semicolon? Do class method definitions?
Define a nested class. Explain how it can be useful.
Is c++ fully object oriented?
What are destructors?
Am pass the 10000 records to target in target I will take commit interval 15000 when I was stop the work flow what will happened
What are structs in c++?