I have this fragment of code that reads arithmetic expressions like 1 + 2 * 3 into integers and characters:
1 + 2 * 3
int main() { int d, flag = 0;
'+2' was scanned to 'd' because of scanf("%d", &d)). You can try with '1-2' and see that '-' also can't display.