title: problem in scanning character in C
body: <pre><code>#include&lt;stdio.h&gt;
  #include&lt;conio.h&gt;
  void main()
  {
    int a,b,c;
    char ch;
    printf("Enter value of a and b");
    scanf("%d %d",&amp;a,&amp;b);
    printf("Enter choice of operation");
    scanf("%c",&amp;ch);// **Here this statment is not able to receive my input***
    switch(ch)
    {
       case '+':
              c=a+b;
              break;
       case '-':
              c=a-b;
              break;
  
       default:
               printf("invalid");
               break;
    }
  getch();
  }
  </code></pre>
  
  <p>Error:</p>
  
  <p><code>scanf("%c",&amp;ch);</code> // <strong>Here this statment is not able to receive my input</strong>
  Unable to scan input given by user??????</p>
  
  <p>thanks..</p>