Home > Back-end >  Use the delete release new memory, but memory has not been released
Use the delete release new memory, but memory has not been released

Time:02-07

Use the delete release new memory, but memory has not been released,
Using vscode, MinGW32, below is the specific code:

` ` `
Int main () {

A=new int int * (8);
CoutDelete a;
Cout & lt;
return 0;
}

` ` `

The result is the same, very confused, is that where I made a mistake, please the great god answer:
...

0 x737258 8
-0 x737258 8
-...

CodePudding user response:

Why did you make release?
When you buy something released a dollar bill,
But in another hand the money is still a money ah,

CodePudding user response:

I mean,
When your hand is a 8
To someone else's hand it's a piece of 8
So,
  • Related