Why this do-while loop doesn't work as I expected?
I just started writing this program... There will be more code inside main, but it already doesn't work as I expected it to...
What it does is: it runs correctly once, and then after execution it runs again, but without stopping for user input? Did I do something wrong???
char again = 'y';
char inputstring = "One, two, three.";
inputptr = inputstring;
printf("Enter an English text. Use no more than 511 characters, including white spaces.\n");
printf("The text you entered was: ");
printf("\nWould you like to enter another text?");
again = getchar();
while (again == 'y' || again =='Y');