Home > Back-end >  C how to release the space in the heap
C how to release the space in the heap

Time:10-04

#include
using namespace std;
Int & amp; Get int (const int v)
{
Int * p=new int (v);
Return * p;
}
Int main ()
{
Int & amp; N=get int (888);
cout Int * pp=& amp; N;
The delete pp;
}

CodePudding user response:

This is allowed, it is feeling very uncomfortable
  • Related