how do i release the memory ocupied by a?

ghostonline's Avatar, Join Date: May 2011
Newbie Member
int x = 10;
int y = 12;
int *ax = &x
int *ay = &y
int*a = new int;
int temp;
xpi0t0s's Avatar, Join Date: Aug 2004
Memory allocated with new is freed with delete, and new[] with delete[].