q for the C hackers
Kevin D. Clark
kclark at CetaceanNetworks.com
Tue Aug 19 11:00:36 EDT 2003
Tom Fogal <tfogal at io.iol.unh.edu> writes:
> the const int way stores the variable in read only memory, and thus, IMO is a
> waste of memory. Also, it would be required to do a memory lookup when
> accessing the value.
The value *might* get stored in read-only memory. The standard
doesn't require this.
[snip]
> Finally, I've never actually heard of 'const' in C. I know that it was
> introduced with C++, although i would not be surprised to see later editions
> of the C standard included it.
> It is not in K&R ('the white book'), IIRC.
Unless you're looking at the old testament, I gotta believe its in
there. "const" most certainly exists in C.
Regards,
--kevin
--
Kevin D. Clark / Cetacean Networks / Portsmouth, N.H. (USA)
cetaceannetworks.com!kclark (GnuPG ID: B280F24E)
alumni.unh.edu!kdc
More information about the gnhlug-discuss
mailing list