Prog#045: Arithmetic/Logical/Relational/Ternary/bitwise operator - using switch

/* 
Program#45
Arithmetic/Logical/Relational/Ternary/bitwise operator - using switch
*/

#include <stdio.h>
main(){
char a;
printf("\nEnter a operator :");
scanf("%c",&a);
switch(a){
case '+':
case '-':
case '*':
case '/':
printf("\nArithmetic operator %c",a);
break;
case '>':
case '<': 
//case '==': /*Since case can have single char- Char constant - v can't use <= or >= != or == */
printf("\nRelational operator %c",a);
break;
case '!':
printf("\nLogical operator %c",a);
break;
case '?':
printf("\nTernary operator %c",a);
break;
case '=':
printf("\nAssignment operator %c",a);
break;
case '&':
case '|':
case '^':
printf("\nBitwise operator %c",a);
break;
default:
printf("\n Not an valid input ");
}
}