diff --git a/src/timequiz.c b/src/timequiz.c index 64c9d9c..bf6562a 100644 --- a/src/timequiz.c +++ b/src/timequiz.c @@ -5,7 +5,7 @@ #include "timequiz.h" #define NUM_ANSWERS 4 - +#define ASKED_QUESTIONS 40 void timequiz(); @@ -140,7 +140,7 @@ void timequiz() { time_t currentTime; int elapsedTime = 0; int totalQuestions = sizeof(questions) / sizeof(questions[0]); - int askedQuestions[40]; + int askedQuestions[ASKED_QUESTIONS]; memset(askedQuestions, 0, sizeof(askedQuestions)); srand((unsigned int)time(NULL));