title: Why does Xcode seem to skip the second scanf() call?
body: <p>I am new to Xcode development tool. To debug a problem, I have tried a very simple code: </p>
  
  <pre><code>int main()
  {char N;
   char M;
   scanf("%c",&amp;N);
   scanf("%c",&amp;M);
   printf("%c",N);
   printf("%c",M);
  }
  </code></pre>
  
  <p>But the problem is that the compiler doesn't seem to read the second scanf. So I can enter one character in the console, and then the program stops. Amazingly, when I write the same code with "int" in place of "char", it  works just fine. Does anybody have an idea what's wrong?</p>