Hello everyone,
I am unable to run the following code...any help will be most welcome
facing issues with the while statement.
unable to detect EOL character
I can tackle this problem through the other route as well but I want see whats wrong about this method.
Code:# include <stdio.h>
main()
{
int i=0;
char myarray[80];
scanf(" [^\n]",myarray);
while ((myarray[i]!='\n') || (myarray[i]==""))
{
printf("\n text%d : %c",i,&myarray[i]);
++i;
}
}