Code:
void fgetAnswers(char answers[], int n, FILE *inp);
Is NOT called like you did it.
Code:
fgetanswers(&answers[n], &n, &examdat);
Code:
#define MAX_ANSWERS 10
char answers[MAX_ANSWERS];
I would try calling it like
Code:
fgetanswers(answers, MAX_ANSWERS, examdat);
Edit: The code you wrote for fgetanswers should be replaced with code that has a chance of working.
I suggest you need to find a compiler and at least try to compile your code with warning on a high setting.
Edit2: C is a case sensitive language "fgetAnswers" is NOT the same as "fgetanswers"!
Edit3: The value of 10 for MAX_ANSWERS is NOT the best value for the program you are supposed to write.
I have no plans to help you any more because you seem to NOT learning based on your last posts on this site.
Tim S.