English

A Single Dimensional array contains N elements. What will be the last subscript? - Computer Applications

Advertisements
Advertisements

Question

A Single Dimensional array contains N elements. What will be the last subscript? 

Options

  • N−1

  • N

  • N+1

  • None

MCQ

Solution

N−1

Explanation:

The array subscripts range from 0 to (n-1), where n represents the number of elements in the array.

shaalaa.com
  Is there an error in this question or solution?
Chapter 3: Arrays (Single Dimensional and Double Dimensional) - EXERCISES [Page 238]

APPEARS IN

Avichal Computer Applications [English] Class 10 ICSE
Chapter 3 Arrays (Single Dimensional and Double Dimensional)
EXERCISES | Q I. 10. | Page 238
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×