title: 2D Array - Menu in C
body: <p>My program is crashing. </p>
  
  <p>Basically, the data is not passing through the array for the menu choice and I am wondering if anyone could check it over and see where the problem is.</p>
  
  <pre><code>#include &lt;stdio.h&gt;
  #include &lt;stdlib.h&gt;
  
  void print_main_menu(char menu_items[5][10], int number_of_items) {
      int i;
      for (i = 0; i &lt; number_of_items; i++) {
          printf("%s\n", menu_items[0][i]);
      }
  }
  
  int main () {
      char menu [5][10];
      menu [0][0] = "1 - Membership List";
      menu [0][1] = "2 - Waiting List";
      menu [0][2] = "3 - Committee List";
      menu [0][3] = "4 - Temporary List";
      menu [0][4] = "5 - Exit";
  
      /* 1 - Membership List */
      menu[1][0] = "1 - Whatever";
      menu[1][1] = "2 - Whatever";
  
      print_menu(menu, 5);
  
      getch();
  }
  </code></pre>