On Wed, Feb 27, 2002 at 06:51:04PM +0530, Chirag Kantharia spoke out thus: > But isn't this also st1->st2->(main:st2)? > ie. if a -> b and b -> c shouldn't it imply a -> c (for pointers)?
It is. But only in the method "Method". That is why it is displaying correctly inside the method only. "st1" in "Method" is just a *local-variable* where a memory location is stored - initially this has the memory address of main:st1 and later on overwritten by the memory address of st2 or main:st2. - Sandip -- Sandip Bhattacharya sandipb @ bigfoot.com http://www.sandipb.net ---------------------------- ================================================ To subscribe, send email to [EMAIL PROTECTED] with subscribe in subject header To unsubscribe, send email to [EMAIL PROTECTED] with unsubscribe in subject header Archives are available at http://www.mail-archive.com/ilugd%40wpaa.org =================================================