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 |
What header file is needed for exit(); a) stdlib.h b) conio.h c) dos.h
What is stoi in c++?
What are the uses of pointers?
If we declare two macro with the same identifier without doing undef the first, what will be the result? eg: #define MAX_SIZE 100 #define MAX_SIZE 200 int table1[MAX_SIZE];
What is a virtual destructor?
What does int * mean in c++?
What is linked list in c++?
Where do I find the current c or c++ standard documents?
What is a block in c++?
Why do we need pointers?
How are Structure passing and returning implemented by the compiler?
Can turbo c++ run c program?