title: Using array to create tic-tac-toe board
body: <p>I am trying to create a tic-tac-toe board using an array of [7][3]</p>
  
  <p>The idea is to input '|' at</p>
  
  <pre><code>[0][0] , [0][2] , [0][4] , [0][6]
  [1][0] , [1][2] , [1][4] , [1][6]
  [2][0] , [2][2] , [2][4] , [2][6]
  </code></pre>
  
  <p>and 'empty space' ( variable char <code>XO</code> for the 'X' and 'O') at</p>
  
  <pre><code>[0][1] , [0][3] , [0][5]
  [1][1] , [1][3] , [1][5]
  [2][1] , [2][3] , [2][5]
  </code></pre>
  
  <p>This is the code:</p>
  
  <pre><code>#include &lt;stdio.h&gt;
  
  
  char drawBoard()
  {
      char board[7][3], XO;
  
      int rows, columns;
  
  /*
  0 * 2 = 0
  1 * 2 = 2
  2 * 2 = 4
  3 * 2 = 6
  
  0 * 2 + 1 = 1
  1 * 2 + 1 = 3
  2 * 2 + 1 = 5
  */
      for ( rows = 0 ; rows &lt; 3 ; rows++ )
          for ( columns = 0 ; columns &lt; 7 ; columns++ )
  
              board[ rows ][ columns * 2 ] = '|';
  
      for ( rows = 0 ; rows &lt; 3 ; rows++ )
          for ( columns = 0 ; columns &lt; 6 ; columns++ )
  
              board[ rows ][ columns *2 + 1 ] = XO;
  
      for ( rows = 0 ; rows &lt; 3 ; rows++ )
          {
              for ( columns = 0 ; columns &lt; 7 ; columns++ )
              {
              printf( "%d ", board[rows][columns] );
              }
              printf("\n\n");
          }
  
  
  }/* end function drawboard */
  
  
  int main()
  {
  
  
      drawBoard();
  
  
  }/* end main */
  </code></pre>
  
  <p>When I run the program, the output are all numbers, which is well, disastrous.</p>
  
  <p>I'm well aware I did not specify any input for variables 'XO', but shouldn't the '|' at least be printed :( ?</p>