did you forget to return any value from function f() ?

Anurag Sharma


On Mon, Jun 14, 2010 at 7:19 PM, sharad <[email protected]> wrote:

> #include<malloc.h>
>      char *f()
>      {char *s=malloc(8);
>        strcpy(s,"goodbye");
>     }
>
>      main()
>      {
>       *f()='A';
>      printf("%c",*f());     }
>
>
> find o/p n explain it
>
> --
> You received this message because you are subscribed to the Google Groups
> "Algorithm Geeks" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected]<algogeeks%[email protected]>
> .
> 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 [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/algogeeks?hl=en.

Reply via email to