Department of Engineering
University of Cambridge
>
Engineering Department
>
computing help
Next:
Built-in types
Up:
C++ Summary
Previous:
Identifiers & declarations
Constants
Symbolic constants are declared and initialised as variables, but the declaration is preceded with the
const
keyword.
const float pi = 3.1415;
declares a floating point constant
pi
.
|
computing help
|
©
Cambridge University Engineering Dept
Information provided by
Tim Love
2006-12-08