M
Michael
Hi,
After I execute program 1, will the memory be release as if I use
program 2?
#include <iostream>
using namespace std;
1.
int main()
{
int x=1;
return 0;
}
2.
int main()
{
int* x=1;
delete x;
return 0;
}
Thanks in advance,
Michael
After I execute program 1, will the memory be release as if I use
program 2?
#include <iostream>
using namespace std;
1.
int main()
{
int x=1;
return 0;
}
2.
int main()
{
int* x=1;
delete x;
return 0;
}
Thanks in advance,
Michael