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 |
Write a C++ Program to check whether a number is prime number or not?
What is the c++ code?
Explain Text Manipulation Routines?
Who was the creator of c++?
Explain about vectors in c ++?
Why is that unsafe to deal locate the memory using free( ) if it has been allocated using new?
What are special characters c++?
What is c++ w3school?
What is diamond problem in c++?
What is flush programming?
What will i and j equal after the code below is executed? Explain your answer.
What is #include iostream?