KwickClips Cyber Safety and Ethics · 42 sec · free
Where is the last of five scores?
Short answer. Index 4.
What order does a 2D index use?
Row, then column.
Remember
| Index runs 0 to size - 1 |
| 2D: [row][column] |
Five scores. Why is the last one at index four? Indexes start at zero. So index one is the second score, sixty four. In the table, row one, column zero is six. Indexes run from zero to size minus one. Two dimensions: row, then column.
This clip is from the full lesson: Arrays and Strings in C++ — 7 minutes, with the tables, the quick answers and the whole lesson in text.
Useful for: NIOS Senior Secondary Computer Science (330), Programming All levels C++, Programming All levels C++
More KwickClips from this lesson
Voice-over is AI-generated; the script is written and checked by Kajal Ma'am. Confirm anything you plan around against your official board document. We never ask for a password or an OTP.



![C++ code int a[]={4,6,5}; for (int x : a) s += x; output 15.](/images/learn/clips/CP05-R3.webp)
![C++ code void up(int a[]) {a[0] += 5;} called on m = {60}, output 65.](/images/learn/clips/CP05-R4.webp)