0
Input
char a = getchar(); getchar(); // call getchar() again to consume the line break character that came from pressing {Enter} key or whitespace from {Spacebar} char b = getchar();
1 Antwort
0
If your just getting a single char use getc(stdin)
int main(void) {
int a, b;
a = getc(stdin);
b = getc(stdin);
... do stuff with your char variables
}