From b2f7624f5e39498879316a70469eaffc36cc8a46 Mon Sep 17 00:00:00 2001 From: Pascal Schneider Date: Tue, 6 Feb 2024 21:24:42 +0100 Subject: [PATCH] =?UTF-8?q?refactoring:=20Const=20hinzugef=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 37cdc0c..dfbdf00 100644 --- a/src/timequiz.c +++ b/src/timequiz.c @@ -23,7 +23,7 @@ void timequiz() { printf("Welcome to our Time Quiz!\n"); printf("You have 60 seconds to answer the questions. Have fun!\n"); - char* questions[] = { + const char* questions[] = { "What is the capital of France?", "Who developed the theory of relativity?", "Who was the first President of the United States?", @@ -65,7 +65,7 @@ void timequiz() { "What is the capital of Australia?" }; - char* answers[][NUM_ANSWERS] = { + const char* answers[][NUM_ANSWERS] = { {"Paris", "London", "Berlin", "Madrid"}, {"Albert Einstein", "Isaac Newton", "Galileo Galilei", "Stephen Hawking"}, {"George Washington", "Thomas Jefferson", "John Adams", "James Madison"},