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


Please Help Members By Posting Answers For Below Questions

What is token c++?

781


What is null c++?

829


Should the this pointer can be used in the constructor?

782


How do c++ struct differs from the c++ class?

852


Will c++ be replaced?

824


What is class definition in c++ ?

827


What is the difference between an external iterator and an internal iterator? Describe an advantage of the external iterator.

805


Write about the access privileges in c++ and also mention about its default access level?

836


What is an overflow error?

840


What is the default width for ouputting a long integer using the insertion operator?

971


What are the advantages of c++ over c?

824


explain the reference variable in c++?

804


What are the uses of static class data?

878


can any one help to find a specific string between html tags which is changed to a sting.. weather.html looks (for location) is somewhere #include #include #include using namespace std; string find_field(string myPage,string); int main (void) { string page, line, location, temperature; ifstream inputFile("weather.xml"); while(getline(inputFile, line)) { page.append(line); line.erase(); } // Now page is a string that contains the whole xml page // Here you need to write something that finds and // extracts location and temperature from the XML // data in the string page and stores them in // the strings location and temperature respectively location=find_field(page,"location"); temperature=find_field(page,"temp_c"); cout << "Location: "<

1849


What is the disadvantage of using a macro?

813