Hi, i have a problem using getchar:
Code:
#include <stdio.h>

int main () {
	int c;
	char a = 'a';
	while ( (c = getchar()) != a ) {
		printf("hello");
	}
}
It prints "hello" twice, because i think it sees the '\n' character.
??