main()
{
char str[30];
int i ,n=0;
printf("enter stirng");
while(( str[n]= getche() ) !='\r')
n++;
str[n]='\0';
for(i=0;i<n;i++)
putchar(str[i]);
}
this is a simple program. enter string as input and same string become output.
nothing is wrong in this program. this program is in my book.
my question is what is the meaning of
while(( str[n]= getche() ) !='\r')
line i could not understood that. plz someone explain this line.