|
@ -77,6 +77,9 @@ void timequiz() { |
|
|
currentTime = time(NULL); |
|
|
currentTime = time(NULL); |
|
|
elapsedTime = (int)difftime(currentTime, startTime); |
|
|
elapsedTime = (int)difftime(currentTime, startTime); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
printf("\nQuiz finished!\n"); |
|
|
|
|
|
printf("Your total score: %d out of %d\n", totalCorrectAnswers, totalAnsweredQuestions); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
int getRandomQuestionIndex(int askedQuestions[], int totalQuestions) { |
|
|
int getRandomQuestionIndex(int askedQuestions[], int totalQuestions) { |
|
|