InterviewSolution
Saved Bookmarks
| 1. |
Can A New Be Used In Place Of Old Mallocq? If Yes, Why? |
|
Answer» The new operator should be used in place of OLD malloc because the new operator ENSURES the CALLING of an appropriate DESTRUCTOR at the TIME of execution and also it is more type-safe than mallocQ. The new operator should be used in place of old malloc because the new operator ensures the calling of an appropriate destructor at the time of execution and also it is more type-safe than mallocQ. |
|