On 06 Mar 2007 10:18:44 -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 behavior is  undefined. This code raised an exception in VC++.

#include<stdio.h>
> int main()
> {
>         int *p=NULL;
>         printf("%d",*p);
>         return 0;
> }
>
> Regards
> Shreya
>
>
>
>
> To unsubscribe, send a blank message to <mailto:
> [EMAIL PROTECTED]>.
> Yahoo! Groups Links
>
>
>
>


-- 
Regards
Sumit Chawla ("eNetra : Hail the Invention")


"Computers are useless. They can only give you answers.":Pablo Picasso


[Non-text portions of this message have been removed]

Reply via email to