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 are the different types of Storage classes?
Explain the difference between c++ and java.
Differentiate between an external iterator and an internal iterator?
What is == in programming?
Do class declarations end with a semicolon? Do class method definitions?
What is c++ stringstream?
When is the copy constructor called?
If I is an integer variable, which is faster ++i or i++?
Refer to a name of class or function that is defined within a namespace?
How can we check whether the contents of two structure variables are same or not?
How size of a class can be calulated?
write a c++ program to create class student having datamember name,Roll_no,age,and branch intilcization all the member using constructor print the all the details on the screen.