🎙 Free live masterclass · Sun, 29 Nov, 7:00 pm IST · Java Full Stack roadmap Register free →
Skills101
← 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?

  1. A.The row index i
  2. B.The column index j
  3. C.Both indexes
  4. 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 →