What is the term used to indicate the location of an element in an array?

2025

What is the term used to indicate the location of an element in an array?

  1. A.

    Row

  2. B.

    Index

  3. C.

    Pointer

  4. D.

    Column

Attempted by 1115 students.

Show answer & explanation

Correct answer: B

The position of an element in an array is referred to as its index. In most programming languages, the index of an array starts from 0.

Explore the full course: Cocubes Preparation