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 a pointer with example?
Describe protected access specifiers?
What is namespace & why it is used in c++?
Which function should be used to free the memory allocated by calloc()?
Which bit wise operator is suitable for checking whether a particular bit is on or off?
Is c++ the best programming language?
How can an improvement in the quality of software be done by try/catch/throw?
Is there any difference between int [] a and int a [] in c++?
When do we run a shell in the unix system?
Is multimap sorted c++?
Explain deep copy and a shallow copy?
How to declare a function pointer?
Differentiate between an array and a list?
Is std :: string immutable?
How do I tokenize a string in c++?