title: how to define a constant array in c/c++?
body: <p>How to define constant 1 or 2 dimensional array in C/C++?
  I deal with embedded platform (Xilinx EDK), so the resources are limited.</p>
  
  <p>I'd like to write in third-party header file something like</p>
  
  <pre><code>#define MYCONSTANT 5
  </code></pre>
  
  <p>but for array. Like</p>
  
  <pre><code>#define MYARRAY(index) { 5, 6, 7, 8 }
  </code></pre>
  
  <p>What is the most common way to do this?</p>