A single dimensional array contains N elements. What will be the last subscript?

ICSE Class 10 Computer Applications PYQ · 2022 Semester 2 · Section A

1(vii)1 Mark · 2022 · Section A · 2022 Semester 2

A single dimensional array contains N elements. What will be the last subscript?

Show SolutionHide Solution↓

N - 1

Reason — The index of an array begins from 0 and continues till Size - 1. Thus, if an array has N elements, the last subscript/index will be N - 1.

← Previous questionNext question →

Browse the free Computer Applications sample bank