Named constants

  1. You can give names to numeric constants, but not string constants
  2. You can give names to string constants, but not numeric constants
  3. You can give names to any type of constant
  4. You cannot give names to constants
  5. You can give names to literals
In the syntax of the declaration for a variable, the initial value is optional. Why is it not optional in the declaration of a named constant?


Disclaimer: The views and opinions expressed on unofficial pages of California State University, Dominguez Hills faculty, staff or students are strictly those of the page authors. The content of these pages has not been reviewed or approved by California State University, Dominguez Hills.