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

Can you add pointers together? Why would you?

1124


What do you mean by recursion in c?

1104


Synonymous with pointer array a) character array b) ragged array c) multiple array d) none

1061


‎How to define structures? · ‎

1080


Is flag a keyword in c?

1150


What are linked lists in c?

1130


Why should I prototype a function?

1184


Why functions are used in c?

1133


What is the importance of c in your views?

1172


Why c is called top down?

1156


What is the difference between #include and #include 'file' ?

1050


If null and 0 are equivalent as null pointer constants, which should I use?

1214


How will you divide two numbers in a MACRO?

1135


Explain what are header files and explain what are its uses in c programming?

1153


What is a built-in function in C?

1593