title: How can I create a constant array with some calculation
body: <p>I have code</p>
  
  <pre><code>int a[5];
  for (int i = 0; i &lt; 5; i++){
      a[i] = i * i;
  }
  </code></pre>
  
  <p>Is there a way to make this array constant so that other code can use it but not change it.</p>