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's the "software peter principle”?

833


What is ios in c++?

916


What is a NULL Macro? What is the difference between a NULL Pointer and a NULL Macro?

846


What will strcmp("Astring", "Astring"); return a) A positive value b) A negative value c) Zero

883


What is microsoft c++ redistributable 2013?

790


How a macro differs from a template?

877


Which software is used to run c++ program?

726


Why struct is used in c++?

810


What are the basics of local (auto) objects?

838


what is COPY CONSTRUCTOR and what is it used for?

810


How do you decide which integer type to use?

762


What is name hiding in c++?

873


How the keyword struct is different from the keyword class in c++?

790


How do pointers work?

929


What is a catch statement?

789