For Programmers: Free Programming Magazines  


Home > Archive > C > February 2006 > Re: Help in c pointers









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Re: Help in c pointers
Charles Richmond

2006-02-28, 6:56 pm

"manochavishal@gmail.com" wrote:
>
> Hi,
> Thanx
>
> But again why i am able to pass value to char* even if it is not
> intialized.
>

Because what you have done is *wrong* and you get "undefined behavior".
Undefined behavior can range from nasal demons to actually working
occasionally. Undefined behavior means *anything* can happen.

--
+----------------------------------------------------------------+
| Charles and Francis Richmond richmond at plano dot net |
+----------------------------------------------------------------+
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2009 codecomments.com