1(vii)
A single dimensional array contains N elements. What will be the last subscript?
- (a)N
- (b)N - 1
- (c)N - 2
- (d)N + 1
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.