home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / lang / c / 16759 < prev    next >
Encoding:
Text File  |  1992-11-18  |  837 b   |  33 lines

  1. Newsgroups: comp.lang.c
  2. Path: sparky!uunet!ferkel.ucsb.edu!taco!rock!stanford.edu!ames!ncar!csn!news.den.mmc.com!crowded-house!richard
  3. From: richard@crowded-house.den.mmc.com (Richard Armstrong)
  4. Subject: Where are literals stored?
  5. Message-ID: <1992Nov18.233739.2335@den.mmc.com>
  6. Sender: news@den.mmc.com (News)
  7. Nntp-Posting-Host: crowded-house.den.mmc.com
  8. Organization: Martin Marietta
  9. Date: Wed, 18 Nov 1992 23:37:39 GMT
  10. Lines: 21
  11.  
  12. Are literals always stored in the same location in memory? (IBM-PC,Borland)
  13.  
  14. For instance, is the string a stored in the same place in the following
  15. two declarations?:
  16.  
  17. static char a[]="ABC"
  18. funca()
  19. {
  20. }
  21.  
  22. funca()
  23. {
  24. char a[]="ABC";
  25. }
  26.  
  27.  
  28. -- 
  29. My company never said any of this... I didn't either.
  30. Richard Armstrong, Software Engineer, Martin Marietta
  31. Email->>>> richard@crowded-house.den.mmc.com <<<<-Email 
  32.  
  33.