Re: Why this code is working
- From: Keith Thompson <kst-u@xxxxxxx>
- Date: Mon, 31 Oct 2005 18:52:46 GMT
jammie_linux@xxxxxxxxx writes:
> But when a function returns, the compiler reclaims all the memory
> assigend to the local variables. By this theory, isn't it possible that
> the memory where the string "This is local to the function" was
> stored, would also be reclaimed. In that case, the main's function str
> will be pointing at a totally meaningless position.
Don't assume your readers can see the article to which you're
replying. You need to provide some context in the form of properly
attributed quotations from the parent article (not necessarily the
whole thing, just what's relevant to your reply). See nearly any
followup in this newsgroup for an example.
Google Groups makes this gratutiously difficult. Please follow these
instructions (which have been posted here over 1000 times), and
*please* complain to Google about their broken interface, which
they've persistently refused to fix.
If you want to post a followup via groups.google.com, don't use
the broken "Reply" link at the bottom of the article. Click on
"show options" at the top of the article, then click on the
"Reply" at the bottom of the article headers.
--
Keith Thompson (The_Other_Keith) kst-u@xxxxxxx <http://www.ghoti.net/~kst>
San Diego Supercomputer Center <*> <http://users.sdsc.edu/~kst>
We must do something. This is something. Therefore, we must do this.
.
- Prev by Date: How to read data from several files into a single buffer?
- Next by Date: Re: How to read data from several files into a single buffer?
- Previous by thread: Re: Why this code is working
- Next by thread: Syscall problem ?
- Index(es):
Relevant Pages
|