From 6ec8605260a5ab4b3f2e551beccf9deb6ff7bedd Mon Sep 17 00:00:00 2001 From: Pascal Schneider Date: Tue, 6 Feb 2024 21:41:26 +0100 Subject: [PATCH] =?UTF-8?q?refactoring:=20Neue=20Array=20Konstante=20hinzu?= =?UTF-8?q?gef=C3=BCgt?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/timequiz.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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));