(b) Write the syntax of new and delete operator in C++. What are the advantages of using them instead of malloc () and free ()?
Explanation
The new and delete operator in C++ provide a more convenient and safer way to manage memory compared to malloc () and free (). They automatically handle memory management and avoid memory leaks.
โฌ Related Topic
๐ Syllabus
View KERALA UNIVERSITY Class 4 Syllabus โ
๐ Practice Questions
Practice Previous Year Questions โ
๐ค Practice with AI
Generate Practice Question Paper โ
๐ Related Concepts
- (b) Explain the necessity and effects of coning of wheels with the help of sketches.
- (b) Define :
- (b) What are the requirement of sleepers used in a railway track? Using a sleeper density $\mathrm{N}+5$, determine the
- (b) Design a mechatronics-based modern engine management system. ..... 12
- (b) A constant volume chamber of $0.3 \mathrm{~m}^{3}$ capacity contains 1 kg of air at $5^{\circ} \mathrm{C}$. Heat is