thank you Quzah. but, can you explain what stdin and ungetc? Upto this chapter, i haven't seen ungetc. I have just seen getc, getcha.
And, suppose, the user enter following line in the prompt:
am testing eieseisie michael eissen, the footballer#
Does the line upto # will be in buffer and read one by one by first getchar() and pass to char ch ?