Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

what is out put of the following code?
#include
class Base
{
Base()
{
cout<<"constructor base";
}
~Base()
{
cout<<"destructor base";
}
}
class Derived:public Base
{
Derived()
{
cout<<"constructor derived";
}
~Derived()
{
cout<<"destructor derived";
}
}
void main()
{
Base *var=new Derived();
delete var;
}

Answer Posted / anvesh

there is no include file iostream for cout
immproper ending for classes ';'

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain what is page thrashing?

1082


What is #include stdlib h?

1097


Why doesnt the call scanf work?

1173


What is register variable in c language?

1017


Explain how do you determine a file’s attributes?

1034


What are header files? What are their uses?

1191


what are the 10 different models of writing an addition program in C language?

1887


What are the scope of static variables?

1170


What does & mean in scanf?

1096


What is the use of function overloading in C?

1153


What is the purpose of clrscr () printf () and getch ()?

1061


Write a program to identify if a given binary tree is balanced or not.

1138


What is extern c used for?

1045


Are the variables argc and argv are local to main?

1303


Can the size of an array be declared at runtime?

1071