Quick -Quiz
If you want to add 200 questions to your code, you need to make the following modifications:
Update the
MAX_QUESTIONS
constant to 200:c#define MAX_QUESTIONS 200
Increase the size of the
contents
array in themain()
function to accommodate more questions. For example:cchar contents[10000] = ""; // Increased size to accommodate more questions
Increase the size of the
question
array in theexam()
function to handle longer questions. For example:cchar question[1000] = ""; // Increased size to accommodate longer questions
Increase the size of the
options
array in theexam()
function to handle longer answer options. For example:cchar options[4][200] = {0}; // Increased size to accommodate longer answer options
Make sure to adjust the sizes according to the actual length of your questions and answer options. Additionally, ensure that the file you're reading from contains the additional 100 questions.
Comments
Post a Comment