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...

why all c++ program must have default constructor?

Answer Posted / jayakrishna

In c++ we have constructors for initialising the values for
the variables where destructors are present in order to
deallocate the the memory after completion of the work.

Is This Answer Correct ?    1 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is dynamic and static typing?

1251


What are the two main components of c++?

1152


What is an inclusion guard?

1279


What is the use of string in c++?

1073


How long does it take to get good at leetcode?

1237


What is the use of c++ programming language in real life?

1092


Do you know about latest advancements in C++ ?

1337


Does c++ cost money?

1050


Are strings mutable in c++?

1194


What are pointer-to-members in C++? Give their syntax.

1181


What is copy constructor? Can we make copy constructor private in c++?

1123


Name four predefined macros.

1104


How do you decide which integer type to use?

1048


What is the difference between a "copy constructor" and an "assignment operator" in C++?

1113


What is purpose of new operator?

1126