const comparison in C and C++

Bjarne Stroustrup bs at alice.UUCP
Sat Sep 17 22:26:27 AEST 1988



 Free U Amsterdam writes:

brl.arpa (Doug Gwyn (VLD/VMB) <gwyn>) writes:
 > Essentially, C++ "const" means "constant"; ANSI C "const" means "readonly".
 > 
 > Aha! That means the following is correct?
 > 
 > const volatile int * const clock;	/* clock is a readonly pointer to */
 > 					/* a readonly and volatile int    */

Yes. In both languages.



More information about the Comp.lang.c mailing list