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;
0
xpi0t0s's Avatar, Join Date: Aug 2004
Mentor
Memory allocated with new is freed with delete, and new[] with delete[].