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
What is dynamic and static typing?
What are the two main components of c++?
What is an inclusion guard?
What is the use of string in c++?
How long does it take to get good at leetcode?
What is the use of c++ programming language in real life?
Do you know about latest advancements in C++ ?
Does c++ cost money?
Are strings mutable in c++?
What are pointer-to-members in C++? Give their syntax.
What is copy constructor? Can we make copy constructor private in c++?
Name four predefined macros.
How do you decide which integer type to use?
What is the difference between a "copy constructor" and an "assignment operator" in C++?
What is purpose of new operator?