← Quiz: Matrix Programs in C: all 10 questions
Quiz: Matrix Programs in C · Question 4 of 10
To add up one student's marks in marks[3][4] (students in rows), which index stays fixed?
To add up one student's marks in marks[3][4] (students in rows), which index stays fixed?
- A.The row index i
- B.The column index j
- C.Both indexes
- D.Neither; loop over all 12 values
Answer & explanation
Correct answer: The row index i
A row total fixes the row and loops over its columns.
Can you get the rest right without peeking?
Take the timed Quiz: Matrix Programs in C quiz free. Pass it to earn XP and count towards your certificate.
Start the quiz →