title: C/C++ enum and char * array
body: <p>Ran accross the following code in an article and didn't think it was standard C/C++ syntax for the char* array.  As a test, both Visual C++ (visual studio 2005) and C++ Builder Rad XE both reject the 2nd line.</p>
  
  <p>Without using <code>#define</code>s, anyone have any tricks/tips for keeping <code>enum</code>s and a string array sort of in sync without resorting to STL ?</p>
  
  <p>More of a curiosity question.</p>
  
  <pre><code>enum TCOLOR { RED, GREEN, BLUE };
  
  char *TNCOLOR[] = { [RED]="Red", [GREEN]="Green", [BLUE]="Blue" };
  </code></pre>
  
  <p>as an aside, the article this came from is quite old and I believe this might work under GCC but have not tested.</p>