title: Using a #define to index an array?
body: <p>This is a stupid question, but I can't work it out and it's beginning to irritate me!</p>
  
  <p>I have the following (reg is a global):</p>
  
  <pre><code>#define CS 4
  #define DS 5
  
  unsigned char reg[6] = {0, 0, 0, 0, 0, 0x10};
  </code></pre>
  
  <p>Now, I would expect reg[DS] to access element 5 of array reg (0x10).  However, when debugging (VC2010), Visual Studio is claiming that DS is zero and the first element is accessed.  Is it me, or is Visual Studio being stupid?</p>