Even in Dev-C++ it is giving memory allocation problems.
Your problem is compiler dependent.Which compiler are you using?
[mod - it doesn't matter which compiler they're using. Since the behaviour is
undefined, ANY behaviour is acceptable. This is the definition of undefined.
PJH]
I ask this once more, you didn't reply.... without knowing we can't say
anything...
Regards,
Debasish
Sumit Chawla <[EMAIL PROTECTED]> wrote: 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]
Karmennevaya Dhikaraste, Maaphaaleshu Kadaachanah
---------------------------------
Heres a new way to find what you're looking for - Yahoo! Answers
[Non-text portions of this message have been removed]