title: Upside down question marks when printing characters from a 2d array
body: <p>I have a 2d array that is a prototype "map" for a game I am making. It takes in the length of the map and width of the map, and then the type of character to make the map (either a - _ or .) and prints the character X by Y times. </p>
  
  <p>For some reason whenever my grid X and Y do not equal each other and are of a value of about 20 or higher, I get upside down question marks instead of the character symbol I am specifying.</p>
  
  <p>Why is this so?</p>
  
  <pre><code>#include &lt;stdio.h&gt;
  
  int main(){
  
  int Y=25;
  int X=15;
  char map[Y][X];
  
  int i,j=0;
  
  for (i=0;i&lt;Y;i++)
      for(j=0;j&lt;X;j++)
          map[Y][X]='-'//any character;
  
  
  for (i=0;i&lt;Y;i++){
      for(j=0;j&lt;X;j++){
          printf("%c",map[Y][X]);}
      printf("\n");}
  
  return 0;
  </code></pre>
  
  <p>}</p>