title: multiple character input to char in C
body: <pre><code>#include &lt;stdio.h&gt;
  
  int main(void) {
     char ch,ch1;
     scanf("%c",&amp;ch);/*input ab here*/
     scanf("%c",&amp;ch1);
     printf("%c %c",ch,ch1);
     return 0;
  }
  </code></pre>
  
  <p>Why this produces <code>a b</code> as output. We don't enter any input for second variable but it still got assigned. Could anyone explain the behavior.</p>
  
  <p>You can check the output <a href="http://ideone.com/bonwYG" rel="nofollow">here</a> if you want.</p>