Program doesn’t wait for user input with scanf(“%c”,&yn);

printf(“Please enter an output filename: “); scanf(“%s”,&outfilename); When you enter the second string and hit the ENTER key, a string and a character are placed in the input buffer, they are namely: the entered string and the newline character.The string gets consumed by the scanf but the newline remains in the input buffer. Further, scanf(“%c”,&yn); … Read more