hi All,
I am running the following C program.
I get foll. output if I enter 'qweptg' followed by enter key as input:Code:#include <stdio.h> main() { int c; c = getchar(); while(c != 97) { putchar(c); c = getchar(); } }
qweptg
qweptg
I dont understand why I am getting repeated output.
Is it something related to buffering?
Please help me in understanding this.
Thanks
Nitin