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 main purpose of c++?
Write a code/algo to find the frequency of each element in an array?
Differentiate between the message and method in c++?
Difference between class and structure.
Which is best c++ or java?
What is prototype in c++ with example?
What is a lambda function c++?
Can we specify variable field width in a scanf() format string? If possible how?
What do c++ programmers do?
What is c++ in english?
What is the function of I/O library in C++ ?
Explain the advantages of using friend classes.
Can c++ be faster than c?
Can we delete this pointer in c++?
What is the fastest c++ compiler?