From d29e334bf032462cfb599d142ea07c4d23818918 Mon Sep 17 00:00:00 2001 From: Pascal Schneider Date: Mon, 5 Feb 2024 23:26:54 +0100 Subject: [PATCH] =?UTF-8?q?Variablen=20f=C3=BCr=20Quiz=20v3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/timequiz.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/timequiz.c b/src/timequiz.c index 35f4513..b22fed7 100644 --- a/src/timequiz.c +++ b/src/timequiz.c @@ -47,4 +47,9 @@ void timequiz() { time_t startTime = time(NULL); time_t currentTime; int elapsedTime = 0; + int totalQuestions = sizeof(questions) / sizeof(questions[0]); + int askedQuestions[40]; + + memset(askedQuestions, 0, sizeof(askedQuestions)); + srand((unsigned int)time(NULL)); }