title: abnormal behavior of scanf
body: <p>I have code as below which scans a matrix, w - width of matrix, h - heigth of matrix.</p>
  
  <p>I am using Visual Studio 2010.</p>
  
  <p>Every time I get a char it increases j by 2 (I put the break point and come to know this behavior).</p>
  
  <pre><code>int w = 0, h = 0;
  char map[21][21];
  int i,j;
  
  scanf("%d%d", &amp;w, &amp;h);
  for(i = 1; i &lt;= h; ++i){
      for(j = 1; j &lt;= w; ++j){
          //fflush(stdin);
          scanf("%c",&amp;map[i][j]);
          //fflush(stdin);
      }
  }
  </code></pre>
  
  <p>What can be the reason behind this?</p>
  
  <p>at the time of scan i am giving value, w = 7, h = 5.</p>
  
  <p>I don't see any error in my code....Please help me.</p>