how do i release the memory ocupied by a?

Newbie Member
10May2011,16:40   #1
ghostonline's Avatar
int x = 10;
int y = 12;
int *ax = &x
int *ay = &y
int*a = new int;
int temp;
Mentor
11May2011,12:11   #2
xpi0t0s's Avatar
Memory allocated with new is freed with delete, and new[] with delete[].