hello everyone,
I have a program below :
What I saw when this program runs is that characters input are not printed at the same time as is clear from the while loop.Code:#include<stdio.h>
#include<stdlib.h>
int main()
{
int i;
while((i=getchar())!=EOF)
{
printf("%c ",i);
}
system("pause");
}
What I want is that characters should be printed as soon as it is entered.
Can u tell me some solution to it ???????