@harshal    thanks  , can u tell me how to find what features are compiler
dependent

On Wed, Jun 8, 2011 at 4:28 PM, Harshal <hc4...@gmail.com> wrote:

> This depends upon the implementation. Hence, your program is not
> portable. It's allowed to return NULL, and it's allowed to return a non-NULL
> pointer. Both ways are sanctioned by the Standard.
>
> On Wed, Jun 8, 2011 at 4:20 PM, coder dumca <coder.du...@gmail.com> wrote:
>
>> can any one tell me why this code perfectly running and giving ouput 56
>>
>> int main()
>> {
>> int *p=malloc(0);
>> *p=56;
>> printf("%d",*p);
>> return 0;
>> }
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Algorithm Geeks" group.
>> To post to this group, send email to algogeeks@googlegroups.com.
>> To unsubscribe from this group, send email to
>> algogeeks+unsubscr...@googlegroups.com.
>> For more options, visit this group at
>> http://groups.google.com/group/algogeeks?hl=en.
>>
>
>
>
> --
> Harshal Choudhary,
> III Year B.Tech CSE,
> NIT Surathkal, Karnataka, India.
>
>
>  --
> You received this message because you are subscribed to the Google Groups
> "Algorithm Geeks" group.
> To post to this group, send email to algogeeks@googlegroups.com.
> To unsubscribe from this group, send email to
> algogeeks+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/algogeeks?hl=en.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Algorithm Geeks" group.
To post to this group, send email to algogeeks@googlegroups.com.
To unsubscribe from this group, send email to 
algogeeks+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/algogeeks?hl=en.

Reply via email to