title: appending to a string array in C#
body: <pre><code>    string Input = "";
      string[] Words = { "elephant", "lion" };
      string[] Clues = { "Has trunk?", "Is gray?", "Is yellow?", "Has mane?"};
  </code></pre>
  
  <p>.........</p>
  
  <pre><code>        Console.WriteLine("Do you want to add you own animal? y/n ? \n");
          Input = Console.ReadLine();
          if (Input == "Y" || Input == "y")
          {
              Console.WriteLine("Enter an animal name: \n");
              //Array.Resize(ref Words, Words.Length + 1);
              Input = Console.ReadLine();
              Words[Words.Length] = Input;
  
  
              Console.WriteLine("Enter 2 clues \n");
              for (int i = 1; i &lt;=2 ; i++)
              {
                  Console.WriteLine("Clue" + i + ":");
                  Clues[Clues.Length] = Console.ReadLine();
  
              }
  
          }
  </code></pre>
  
  <p>This is the standard guess the animal game..
  I am getting an <strong><code>index out of bounds</code></strong> at line <code>Words[Words.Length] = Input;</code>.. the new animal  and clues entered also needs to be available the next time i play the game..</p>