Steffie
2013-01-30 11:22:33 UTC
printf("Enter an operator :");
scanf("%c", &operator);
switch (operator) {
case +:
printf (blah blah)
break;
case *:
printf (blahblah)
break;
}
for some reason this is not executing. i tried adding single quotation marks around the characters but they're not working. or are switch statements only used with integers?