home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.c
- Path: sparky!uunet!ferkel.ucsb.edu!taco!rock!stanford.edu!ames!ncar!csn!news.den.mmc.com!crowded-house!richard
- From: richard@crowded-house.den.mmc.com (Richard Armstrong)
- Subject: Where are literals stored?
- Message-ID: <1992Nov18.233739.2335@den.mmc.com>
- Sender: news@den.mmc.com (News)
- Nntp-Posting-Host: crowded-house.den.mmc.com
- Organization: Martin Marietta
- Date: Wed, 18 Nov 1992 23:37:39 GMT
- Lines: 21
-
- Are literals always stored in the same location in memory? (IBM-PC,Borland)
-
- For instance, is the string a stored in the same place in the following
- two declarations?:
-
- static char a[]="ABC"
- funca()
- {
- }
-
- funca()
- {
- char a[]="ABC";
- }
-
-
- --
- My company never said any of this... I didn't either.
- Richard Armstrong, Software Engineer, Martin Marietta
- Email->>>> richard@crowded-house.den.mmc.com <<<<-Email
-
-