difference in output.

From: Prasad V.S. <vspra_at_hotmail.com>
Date: Fri, 11 May 2001 12:16:19 +0000

>Hi,
>
> I have the similar follow-up question on the concept.
>As per K&R Every c program must have a main some where.
>
>but the program
>
># include <stdio.h>
>hello()
>{
> printf("abc");
>}
>
>can compile and run successfully on VMS.
>
>I am little confused what is happening internally..
>
>/vsp
>
>
> >Hi Experts,
>
> > I don't know whether this is relevant place to
> >ask this question or not. I am sorry if I am wrong.
>
> > main()
> > { char *g="initialdata";
> > strcpy(g,"new");
> > printf("The string is %s",g);
> > }
>
> >Why does this program crash in VMS and but not on
> >Tru64?
>
> >where comes the difference between these two?
>
> >thank you all.
>
> >/svp
>
>
>_________________________________________________________________________
>Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.
>

_________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.
Received on Fri May 11 2001 - 12:17:30 NZST

This archive was generated by hypermail 2.4.0 : Wed Nov 08 2023 - 11:53:42 NZDT