difference in output.

From: unix doubts <unix_doubts_at_yahoo.com>
Date: Fri, 11 May 2001 04:17:06 -0700 (PDT)

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/
Received on Fri May 11 2001 - 11:18:25 NZST

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