why there is no "*" in output? the input is : abcde[enter key]
#include<stdio.h>
int main(void){
char ch;
while ((ch=getchar( ))== 'e')
printf(" * ");
return 0;
}
I was wondering that the abcd'\n' will be stored in buffer when i click the enter key, and the getchar() will constantly read it until catch the char 'e' and print the "*"