const comparison in C and C++

Maarten Litmaath maart at cs.vu.nl
Sat Sep 17 03:29:47 AEST 1988


In article <8500 at smoke.ARPA> gwyn at 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    */
-- 
    Alles klar,                       |Maarten Litmaath @ Free U Amsterdam:
                   Herr Kommissar?    |maart at cs.vu.nl, mcvax!botter!maart



More information about the Comp.lang.c mailing list