Skip to content

new and delete operator

Top Post on IndiBlogger

0
new and delete operator

new operator is used to allocate memory in runtime. This memory is allocated from heap segment of a process. To understand how new operator works, let us see with the help of an example. #include using namespace std;class employee { unsigned short m_age; unsigned int m_salary;public: employee() {} employee(unsigned short age, unsigned int salary) { m_age = age;&n...

Read this post on allabouttechnologies.co.in


Popular Articles by this blogger

Recommended for you