<<< | Index | >>> |
Some things shouldn't change while program is running:
const double PI = 3.14159;
Invites compiler optimization
Prevents stupid bugs
Preferred over #define or literals
const is a type modifier
const variables must be initialized
<<< | Index | >>> |