Why i'm getting the following error message when i try to set a sentence for Question and how can i fix that? I'm using 2d array because i want to organize the questions in different categories.
I am not sure what you want to do in the setQuiz function. On line 24 quiz[MAX][MAX] is a single element of the quiz array, which also happens to be out of bounds. You can go up to MAX-1, since you start from 0.In addition, you cannot initialize quiz on line 24, only on line 13. The only way is to explicitly set each element of the array, with a for loop.