Examveda

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

A. 5

B. 9

C. 10

D. 11

Answer: Option B

Solution (By Examveda Team)

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.

This Question Belongs to C Program >> Arrays And Strings

Join The Discussion

Comments (1)

  1. TnGaming 420
    TnGaming 420:
    1 year ago

    Explain please

Related Questions on Arrays and Strings