home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.c
- Path: sparky!uunet!zaphod.mps.ohio-state.edu!cs.utexas.edu!torn!utzoo!telly!druid!darcy
- From: darcy@druid.uucp (D'Arcy J.M. Cain)
- Subject: Re: Where are literals stored?
- Message-ID: <1992Nov21.151321.12258@druid.uucp>
- Date: Sat, 21 Nov 1992 15:13:21 GMT
- References: <1992Nov18.233739.2335@den.mmc.com> <1992Nov21.142614.11609@druid.uucp>
- Organization: D'Arcy Cain Consulting
- Lines: 18
-
- I wrote:
- >static char *a = "ABC";
- >...
- >char *a = "ABC";
- >
- >Of course the variables should probably be declared const in this case.
-
- I meant that the variable should be declared as pointing to a const:
-
- static char const *a ...
-
- We don't have to start *that* discussion again. :-)
-
- --
- D'Arcy J.M. Cain (darcy@druid.com) |
- D'Arcy Cain Consulting | There's no government
- Toronto, Ontario, Canada | like no government!
- +1 416 424 2871 DoD#0082 |
-