title: case in a switch statement in C
body: <pre><code>#include&lt;stdio.h&gt;
  
  void main(){
       char operator;
       double a, b;
  
       printf("enter an operand(+,-,*,/)");
       scanf("%c",&amp;operator);
       printf("enter two operands");
       scanf("%lf %lf",&amp;a,&amp;b);
  
       switch(operator){
         case '+': printf("%lf is the output of a &amp; b",(a+b)); break;
         case '-': printf("%lf is the output of a &amp; b",(a-b)); break;
         case '*': printf("%lf is the output of a &amp; b",(a*b)); break;
         case '/': printf("%lf is the output of a &amp; b",(a/b)); break;
      }
  }
  </code></pre>
  
  <p>I know that only an integer is allowed after a case. I also know that any character written inside single inverted commas writtens an ascii interger.</p>
  
  <p>In this the argument inside the switch statement is a character,
  <code>switch(operator);</code>.</p>
  
  <p>How will that equate with an integer inside the case?
  <code>case '+':</code></p>