How Does 'C' Store Strings ?

Conor P. Cahill cpcahil at virtech.UUCP
Wed Oct 18 09:08:16 AEST 1989


In article <914 at sdrc.UUCP>, mustard at sdrc.UUCP (Sandy Mustard) writes:
> You may also want to use 
> 
> static const char vers.....
>        ^^^^^
> This may help avoid the redundant string elimination. 

The const should be a giant flag to the compiler that this data is 
the perfect choice for redundant data elimination since it won't be 
changed.

-- 
+-----------------------------------------------------------------------+
| Conor P. Cahill     uunet!virtech!cpcahil      	703-430-9247	!
| Virtual Technologies Inc.,    P. O. Box 876,   Sterling, VA 22170     |
+-----------------------------------------------------------------------+



More information about the Comp.lang.c mailing list