Vidyalelo
C Programming · Q1

Arrays and Strings

Programming · C Programming · question 1

Q1

What is the highest index for an array with 10 elements in C?

A.
5
B.
9
Answer
C.
10
D.
11

Answer: Option B

Solution

Answer: Option B
Solution:
An array in C is indexed starting from 0.

If an array has 10 elements, the first element will have an index of 0.

The last element, therefore, will have an index of 9.

Hence, the highest index for an array with 10 elements is 9.