This simple issue is causing my entire program to crash during the first input. If I remove the input, the program works fine but once I add scanf into the code and enter th
You must pass the address of the variable to scanf:
scanf("%c", &answer);