Go4Expert

Go4Expert (http://www.go4expert.com/)
-   C (http://www.go4expert.com/forumdisplay.php?f=20)
-   -   how do i release the memory ocupied by a? (http://www.go4expert.com/showthread.php?t=25747)

ghostonline 10May2011 16:40

how do i release the memory ocupied by a?
 
int x = 10;
int y = 12;
int *ax = &x
int *ay = &y
int*a = new int;
int temp;

xpi0t0s 11May2011 12:11

Re: how do i release the memory ocupied by a?
 
Memory allocated with new is freed with delete, and new[] with delete[].


All times are GMT +5.5. The time now is 16:02.