Wednesday, August 31, 2005

Memory Locations
http://www.ale.org/archive/ale/ale-1997-07/msg00118.html
For curiosity, you might try printing out the locations s1 and s2 in
the different versions by using printf's %p; you would likely see that
malloc, read-only strings, and stack-based arrays are all in distant
parts of memory.

No comments:

Post a Comment