|
Wilt, Charles wrote: > Const == Constant Reference == pass a pointer to a variable and don't > allow the contents of the variable to be changed. Ok, this is something I've been curious about ... and maybe this is a dumb question. If a const is just a pointer to a variable that isn't allowed to be changed ... is there any reason I couldn't take the address of that pointer, assign it to another (non-const) variable, and change the const's value that way? david
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.