title: 2d array in c p
body: <pre><code>#include&lt;stdio.h&gt;
  int main(){
   int i=0,j=0;
   char a[5][2];
   for(i=0;i&lt;5;i++){
    for(j=0;j&lt;2;j++){
     scanf("%c",&amp;a[i][j]);
    }
   }
   for(i=0;i&lt;5;i++){
    for(j=0;j&lt;2;j++){
     printf("\n %c \n",a[i][j]);
     printf("\t");
    }
    printf("\n");
   }
   return 0;
  }
  </code></pre>
  
  <p>i/p:
  an
  gu
  sd
  ec</p>
  
  <p>I get no output.</p>
  
  <p>I was trying a simple program on 2d arrays. I could not get the output and the input is not taking 5*2 characters instead it takes only 4*2 characters.</p>