Constants

  • Mikael Olsson
Chapter

Abstract

A constant is a variable with a value that cannot be changed once it has been assigned. This allows the compiler to enforce that a variable’s value is not changed anywhere in the code by mistake.

Copyright information

© Mikael Olsson 2015

Authors and Affiliations

  • Mikael Olsson
    • 1
  1. 1.AlandFinland

Personalised recommendations