Toggle navigation
Home
Latest pastes
FAQ
Random
BitBin is shutting down!
Register
Login
c++ create and delete int pointer
SUBMITTED BY:
Guest
DATE:
Nov. 19, 2013, 2:38 p.m.
FORMAT:
C++
SIZE:
171 Bytes
Raw
Download
Tweet
HITS:
907
Go to comments
Report
int
main
(){
//Creating new pointer
int
*
ptr
=
new
int
(
10
);
//removing pointer from memory
delete
ptr
;
return
0
;
}
Please enable JavaScript to view the
comments powered by Disqus.
comments powered by
Disqus