On 06 Mar 2007 10:18:45 -0800, vermilions276 <[EMAIL PROTECTED]> wrote: > shudn't this piece of code give me a null pointer exception?it ran > without any exception and printed 0.not even after the program has > finished execution.Under what circumstances can this happen? am i > just missing something?
The result of dereferencing a null poiner is undefined. That includes 'runs without any exception and prints 0'. -- Tamas Marki
