|
@ -10,6 +10,8 @@ int getRandomQuestionIndex(int askedQuestions[], int totalQuestions); |
|
|
|
|
|
|
|
|
void displayQuestion(char* question, char* answers[], int correctIndex); |
|
|
void displayQuestion(char* question, char* answers[], int correctIndex); |
|
|
|
|
|
|
|
|
|
|
|
void processUserAnswer(int userAnswer, int correctIndex, int* score, int* totalCorrectAnswers, char* answers[]); |
|
|
|
|
|
|
|
|
void timequiz() { |
|
|
void timequiz() { |
|
|
|
|
|
|
|
|
printf("Welcome to our Time Quiz!\n"); |
|
|
printf("Welcome to our Time Quiz!\n"); |
|
@ -85,3 +87,6 @@ void displayQuestion(char* question, char* answers[], int correctIndex) { |
|
|
printf("%d. %s\n", i + 1, answers[i]); |
|
|
printf("%d. %s\n", i + 1, answers[i]); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
void processUserAnswer(int userAnswer, int correctIndex, int* score, int* totalCorrectAnswers, char* answers[]) { |
|
|
|
|
|
} |