title: Magic Numbers In Arrays? - C++
body: <p>I'm a fairly new programmer, and I apologize if this information is easily available out there, I just haven't been able to find it yet.</p>
  
  <p>Here's my question: </p>
  
  <p>Is is considered magic numbers when you use a literal number to access a specific element of an array?</p>
  
  <p>For example:</p>
  
  <pre><code>arrayOfNumbers[6] // Is six a magic number in this case?
  </code></pre>
  
  <p>I ask this question because one of my professors is adamant that all literal numbers in a program are magic numbers. It would be nice for me just to access an element of an array using a real number, instead of using a named constant for each element.</p>
  
  <p>Thanks!</p>