I want to use getchar in a while loop such that it does not dont want to press enter everytime how is this possible
for eg
while((c=getcha r())!='\n')
{
printf("%c",c);
}
i want this variable c to be printed each time i press a character in run time and not pressing enter at all how is this possible i dont want my output at the end but simultaneously with pressing the character the character should...