Original Post
Consider the following code:
#include <ostream.h>
int main()
{
int *p = new int;
cout << *p << "\n";
return 0;
}
Will the memory allocated and pointed by p be deleted automatically when application finish?