This is a stupid question, but I can't work it out and it's beginning to irritate me!

I have the following (reg is a global):

```
#define CS 4
#define DS 5

unsigned char reg[6] = {0, 0, 0, 0, 0, 0x10};

```

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?