const confusion

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • spasmous

    #1

    const confusion

    I would like to make an array will will only be used for one purpose
    and whose members are constant.
    E.g. double arr[3] = { 0., 1., 2. };

    I'd like arr to always point to this array and the entries to always
    be these values. What is the right syntax for const in this situation?





Working...