Hi,

Quite a basic question concerning dynamic memory allocation.
int main()
{
int* p = new int();
return 0;
}
I am assuming that the above program is harmless to the computer. Is that right? Does C++ guarantee that on program termination, the memory pointed to by P is freed? Is there a good reason why I should still insert an "delete p';"? Is the answer the same for every operating system?
Tanks and congratulations on the new qt forum.
JCR