* difference in output.
@ 2001-05-11 11:17 unix doubts
0 siblings, 0 replies; 2+ messages in thread
From: unix doubts @ 2001-05-11 11:17 UTC (permalink / raw)
To: tru64-unix-managers
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
__________________________________________________
Do You Yahoo!?
Yahoo! Auctions - buy the things you want at great prices
http://auctions.yahoo.com/
^ permalink raw reply [flat|nested] 2+ messages in thread
* difference in output.
@ 2001-05-11 12:16 Prasad V.S.
0 siblings, 0 replies; 2+ messages in thread
From: Prasad V.S. @ 2001-05-11 12:16 UTC (permalink / raw)
To: tru64-unix-managers
>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.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2001-05-11 12:16 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-05-11 11:17 difference in output unix doubts
-- strict thread matches above, loose matches on Subject: below --
2001-05-11 12:16 Prasad V.S.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox