From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <102653647621810.tru64-unix-managers.marc@archive.invalid> From: "Prasad V.S." Date: Fri, 11 May 2001 12:16:19 +0000 To: tru64-unix-managers Subject: difference in output. X-MARC-Message: https://marc.info/?l=tru64-unix-managers&m=102653647621810 >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 >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.