I'm just starting out and have an idea in mind to create a quiz program, not sure how to implement it yet because I don't understand how it would work. Also not sure if I'd have to use structures instead.
Example:
char questionanswer[][];
Question 1. What is the capital of France?
Answer 1. Paris
Question 2. What is c?
Answer 2: A language
Both questions have different character lengths and different answer lengths, so how would you know how far to count in the array dynamically?
It's not as if array element 1 was "What is the capital of France", array element 2 was "What is c?", which would be easy to set up since each question neatly fits into 1 array element, and so would an answer, which it make it easy to run through the questions, you'd just have a loop and match array element 1 in the question to array element 1 in the answer.
Do people use arrays for this sort of thing or structures?
I don't want anyone to write any code, I just want to know how it works, if it works, if you use arrays.