It doesn't know the value *at* the pointer, nor the value it points to, unless your using a statement to assign/check. The pointer points to an address, so the compiler doesn't really know the value unless it's assigned, or unless it's a constant in some cases. Thanks, Tyler Littlefield http://tds-solutions.net Twitter: sorressean
On Feb 24, 2010, at 9:42 PM, Benjamin Scott wrote: > Just curious, but why would the compiler > knowing the value of a pointer be pointless? > I'm not sure what you mean, are you > missing part of a thought? > > --- On Wed, 2/24/10, Steve Searle <st...@stevesearle.com> wrote: > > From: Steve Searle <st...@stevesearle.com> > Subject: Re: [c-prog] Is NULL defined somewhere? > To: c-prog@yahoogroups.com > Date: Wednesday, February 24, 2010, 6:41 PM > > > > Around 12:20am on Thursday, February 25, 2010 (UK time), Benjamin Scott > scrawled: > > > According to my understanding, If a Pointer has the > > > value of 0, then it shows the compilier that it points > > > to nothing, but I thought normally NULL is defined as > > > 0. > > Surely the concept of the compiler knowing a value of a pointer is > > meaningless? > > Steve > > -- > > (o< www.stevesearle. com > > //\ Powered by Fedora > > V_/_ No MS products were used in the creation of this message > > 00:40:30 up 23 days, 8:12, 0 users, load average: 0.00, 0.00, 0.00 > > [Non-text portions of this message have been removed] > > ------------------------------------ To unsubscribe, send a blank message to <mailto:c-prog-unsubscr...@yahoogroups.com>.Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/c-prog/ <*> Your email settings: Individual Email | Traditional <*> To change settings online go to: http://groups.yahoo.com/group/c-prog/join (Yahoo! ID required) <*> To change settings via email: c-prog-dig...@yahoogroups.com c-prog-fullfeatu...@yahoogroups.com <*> To unsubscribe from this group, send an email to: c-prog-unsubscr...@yahoogroups.com <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/