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

  1. Newsgroups: comp.lang.c
  2. Path: sparky!uunet!zaphod.mps.ohio-state.edu!cs.utexas.edu!torn!utzoo!telly!druid!darcy
  3. From: darcy@druid.uucp (D'Arcy J.M. Cain)
  4. Subject: Re: Where are literals stored?
  5. Message-ID: <1992Nov21.151321.12258@druid.uucp>
  6. Date: Sat, 21 Nov 1992 15:13:21 GMT
  7. References: <1992Nov18.233739.2335@den.mmc.com> <1992Nov21.142614.11609@druid.uucp>
  8. Organization: D'Arcy Cain Consulting
  9. Lines: 18
  10.  
  11. I wrote:
  12. >static char *a = "ABC";
  13. >...
  14. >char *a = "ABC";
  15. >
  16. >Of course the variables should probably be declared const in this case.
  17.  
  18. I meant that the variable should be declared as pointing to a const:
  19.  
  20. static char const *a ...
  21.  
  22. We don't have to start *that* discussion again.  :-)
  23.  
  24. -- 
  25. D'Arcy J.M. Cain (darcy@druid.com)  |
  26. D'Arcy Cain Consulting              |   There's no government
  27. Toronto, Ontario, Canada            |   like no government!
  28. +1 416 424 2871          DoD#0082   |
  29.