user61805: I want to create a structure like this:
 struct commands
{
  int   cmd;
  char  descr[25];
};

commands cmds[] =
{
  {16, "Hammond Organ"},
  {17, "Percussive Organ"},
  {18, "Rock Organ"},
  { 0, "" }                   // end of list marker 
};


The compiler doesn't protest, but in a simulator the values of cmds[i].descr are all zeros.
And the line
Serial.write(cmds[1].descr);

prints nothing.
Please recommend how to rewrite the code.
Thanks.
EDIT
Thanks for your answer. It helped me a lot.
There is something wrong with the simulator (Simulator for Arduino - version 1.11E Designed by Virtronics). In the meantime I received the Mega 2560 board and the code works well with the board.

user37523: There must be something wrong with the simulator you're using, because your code works for me (Arduino IDE 1.8.9, OSX, Arduino Uno).
struct commands
{
  int   cmd;
  char  descr[25];
};

commands cmds[] =
{
  {16, "Hammond Organ"},
  {17, "Percussive Organ"},
  {18, "Rock Organ"},
  { 0, "" }                   // end of list marker 
};

void setup(){
  Serial.begin(9600);
  Serial.write(cmds[1].descr);
}

void loop(){}


61805: <p>I want to create a structure like this:</p>

<pre><code> struct commands
{
  int   cmd;
  char  descr[25];
};

commands cmds[] =
{
  {16, "Hammond Organ"},
  {17, "Percussive Organ"},
  {18, "Rock Organ"},
  { 0, "" }                   // end of list marker 
};

</code></pre>

<p>The compiler doesn't protest, but in a simulator the values of cmds[i].descr are all zeros.</p>

<p>And the line</p>

<pre><code>Serial.write(cmds[1].descr);
</code></pre>

<p>prints nothing.</p>

<p>Please recommend how to rewrite the code.</p>

<p>Thanks.</p>

<p><strong>EDIT</strong></p>

<p>Thanks for your answer. It helped me a lot.</p>

<p>There is something wrong with the simulator (Simulator for Arduino - version 1.11E Designed by Virtronics). In the meantime I received the Mega 2560 board and the code works well with the board.</p>
 37523: <p>There must be something wrong with the simulator you're using, because your code works for me (Arduino IDE 1.8.9, OSX, Arduino Uno).</p>

<pre><code>struct commands
{
  int   cmd;
  char  descr[25];
};

commands cmds[] =
{
  {16, "Hammond Organ"},
  {17, "Percussive Organ"},
  {18, "Rock Organ"},
  { 0, "" }                   // end of list marker 
};

void setup(){
  Serial.begin(9600);
  Serial.write(cmds[1].descr);
}

void loop(){}
</code></pre>
