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 is the v-ptr?
What is c++ hiding?
What are the vectors in c++?
Explain the virtual inheritance in c++.
What is a dangling pointer?
"How will you merge these two arrays? Write the program Array: A 1 18 22 43 Array: B 3 4 6 20 34 46 55 Output Array: C 1 3 4 6 18 20 22 34 43 46 55"
9 Answers College School Exams Tests, HCL,
What are the advantages of using a pointer?
What are the two types of comments?
Are strings immutable in c++?
What is the last index number in an array of 100 characters a) 100 b) 99 c) 101
In c++, what is the difference between method overloading and method overriding?
Is there finally in c++?