I have an exercise about pointer in c++. Below is my code.
int* temp = NULL;
delete (temp);
Is it worthy to delete (temp) like above? Does it mean that event I point variable (temp) to NULL, but since I declare temp as int*; which the keyword store on the heap. Do I still need to delete temp explicitly?