image provider

Constant Pointers


Here is an email I received in response to one of my essays.

Constant Pointers : Thomas Uebermeirer : thomas@uebermeier.de : 2000-11-06

Unmaintainable Code is a funny page, I watch it regularly since it appeared in slashdot.

One thing I saw: Under Naming #14: Deutch, Fran¸ais, Esperanto in German it is spelled Deutsch, or you can say dutch (which is spoken in the Netherlands).

Another idea (in C): put pointers on constants and change them … :)

const float Pi=3.141;
float *j;
[...]
j=π
*j=4.0;

This page is posted
on the web at:

http://mindprod.com/feedback/unmain/constantpointers.html

Optional Replicator mirror
of mindprod.com
on local hard disk J:

J:\mindprod\feedback\unmain\constantpointers.html
Canadian Mind Products
Please the feedback from other visitors, or your own feedback about the site.
Contact Roedy. Please feel free to link to this page without explicit permission.

IP:[65.110.21.43]
Your face IP:[3.145.180.16]
You are visitor number