HI, I'm just new to c (programming in general), and I am wondering why getche() echoes every character that I type but not 'Enter' key. Isn't 'Enter' key a character? And also, why does getchar() -which requires to press enter after typing a character- echo the 'Enter' along with the typed character (while it shouldn't because that 'Enter' is for finishing getchar() function)?
Here is the code for getchar() function-
{printf("Hello");
getchar();
getch();}
The output I get is-
Hello
a
I want to know why it echoes 'Enter' key when pressed after a character? And why getche() doesn't (when pressed as a character)?