Path: csiph.com!au2pb.net!feeder.erje.net!us.feeder.erje.net!newsfeed.fsmpi.rwth-aachen.de!newsfeed.straub-nv.de!eternal-september.org!feeder.eternal-september.org!border1.nntp.ams1.giganews.com!border2.nntp.ams1.giganews.com!nntp.giganews.com!buffer2.nntp.ams1.giganews.com!local2.nntp.ams1.giganews.com!nntp.brightview.co.uk!news.brightview.co.uk.POSTED!not-for-mail NNTP-Posting-Date: Fri, 07 Aug 2015 14:00:21 -0500 From: Gareth Owen Newsgroups: comp.lang.c Subject: Re: I want to ask a question... References: Date: Fri, 07 Aug 2015 20:00:20 +0100 Message-ID: <87pp2y7wl7.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) Cancel-Lock: sha1:vH5Mnp6ZoNe6nsCT8Xd6ezLFBQk= MIME-Version: 1.0 Content-Type: text/plain Lines: 13 X-Usenet-Provider: http://www.giganews.com X-Trace: sv3-zRCtRzFVgGQWhRrHstOtbrYam5vXqRje8WLRe2HhNrPuryKY+PTQe7cQ2b0T2Vvj0jArh24jnORJsRN!qNeHBl4KEB/TSPfEsx1x7qlnBQ7M32+/VTym8hLMDlg1HkN4hM/rek5C9zRgmho1d6bl X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.3.40 X-Original-Bytes: 1528 Xref: csiph.com comp.lang.c:66967 Ramine writes: > Suppose that you are using a pointer that points to an allocated chunk > of memory, and suppose that you deallocated this chunk of memory and > you have keeped the old address of this pointer inside another pointer > , is there a problem to access the old address of the pointer and > content of the memory even if it was deallocated ? You can access the pointer itself, but you can't access the memory it points to. Sometimes it might work - and it simple programs it probably will work more ofhen than not - but you can't rely on it. Don't do that.