Article View: comp.sys.atari.st
Article #39517Re: C Question
From: Anthony Lapadula
Date: Fri, 15 Dec 1989 21:11
Date: Fri, 15 Dec 1989 21:11
23 lines
935 bytes
935 bytes
This probably doesn't belong in this newsgroup any more than my last
posting ("he," "she," and "e"), but....
In some article Jeff Beadles wrote:
>
> [in all of this, the use of "static" is optional. ]
Not if we are talking about local variables, which we are.
> char *fred = "Hello";
>
> is IDENTICAL to
>
> char fred[] = "Hello";
Not quite. In the first case, a legal assignment would be
fred = "Goodbye"; /* 'fred' now points to a different string */
This assignment fails in the second case.
-- Anthony (No Sig Needed) Lapadula
Technical Details
Message-ID:
<1989Dec15.211142.7509@uunet!unhd>Path:
arc1-ca.pugleaf.net!utzoo!attcan!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!uunet!unhd!al770Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!attcan!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!uunet!unhd!al770 From: al770@uunet!unhd (Anthony Lapadula) Newsgroups: comp.sys.atari.st Subject: Re: C Question Message-ID: <1989Dec15.211142.7509@uunet!unhd> Date: 15 Dec 89 21:11:42 GMT Distribution: na Organization: Computing Information Services, University of New Hampshire Lines: 23