1 Apr
2003
1 Apr
'03
11:28
On Monday 31 March 2003 12:38 pm, Jerry Feldman wrote:
On Mon, 31 Mar 2003 10:08:33 -0500 (EST)
"Steven T. Hatton"
wrote: Ok, now I see what's going on. My pointing to temp with memberIntPtr doesn't place a 'handle' on so when temp is gone, that memory is up for grabs
As I said, tmp is allocated on the stack. When the function returns, the stack is unwound and then used by another function. char *s = "abcd" + 2; For your own edification, try explaining this. This a perfectly legal thing to do. A friend used to ask this as an interview question.
-- Jerry Feldman
*s=='c'?