Answers for "c++ delet from memory"

C++
7

c++ delet from memory

// Delete pointer
int* ptr1 = new int;
delete ptr1;

// Delete array
int* array = new int[10];
delete[] array;
Posted by: Guest on March-09-2020

Browse Popular Code Answers by Language