G
George Exarchakos
Hi there,
this is, I guess, very easy question but I cannot find a specific well
documented answer.
When I use:
int *x = new int(8);
it obviously allocates memory for a new int. But do I have to
explicitly deallocate (delete) it as with any object dynamically
created with 'new'?
Many thanks,
-- George
this is, I guess, very easy question but I cannot find a specific well
documented answer.
When I use:
int *x = new int(8);
it obviously allocates memory for a new int. But do I have to
explicitly deallocate (delete) it as with any object dynamically
created with 'new'?
Many thanks,
-- George