previous | start | next

Constants (Syntax 2.7 : Constant Definition)

Syntax 2.7 : Constant Definition

const type_name constant_name = initial_value;
Example:
const double LITER_PER_OZ = 0.029586
Purpose: Define a new constant of a particular type and supply its value.

 



previous | start | next