Board: [DeveloperNet] C++ Subject: Re: Dangerous things in C From: Nightfox Date: Fri Aug 04, 2017 13:41 Subject: Re: Dangerous things in C++ Re: Re: Dangerous things in C By: Deavmi to Nightfox on Fri Aug 04 2017 06:33 pm De>`new int` allocates memory for holding data of type `integer` and De> thereturns a pointer to it which you assigned to a variable of type `int De> pointer`. De> `delete anInt` would look at the pointer in `anInt` and then ask the De> kernel to de-allocate memory at that address. De> Am I right? Yes, that's correct. Nightfox --- ■ Synchronet ■ Digital Distortion: digitaldistortionbbs.com .