Path: 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 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