I don't know why this basic code doesn't work well: it's printing just the first variable but not the second: b=a y=b
#include <stdio.h>
int main() {
int b, y;
b = getchar();
putchar(b);
y = getchar();
putchar(y);
return 0;
}
The output is:
/tmp/urA18H7eDx.o
a
a
b
dash: 2: b: not found