new and delete operator

Top Post on IndiBlogger
0

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


Karan Arora

blogs from Chandigarh