Returning Pointers to Local Variables
...
scope again
...
Recall: local variables disappear after invocation of a functions ends;
Hence, returning a pointer to a local variable does not work!
...
points to ???
Contrast Perl, Java(?), Python
...
all of which use a gargage-collection based system --- returning pointers to local variables is standard, does work!
In short, it doesn't work!
...previous
up (conts)
next...
About this document:
Produced from the SGML:
/home/isd/public_html/_course_crash_in_c/_reml_grp/index.reml
On: 3/3/2003 at 17:43:41
Options:
reml2 -i noindex -l long -o html -p multiple