Question:

Index of the array starts from

Show Hint

This is a fundamental concept in computer science. Always remember: computers start counting from 0, not 1.
  • 0
  • 1
  • 2
  • -1
Hide Solution
collegedunia
Verified By Collegedunia

The Correct Option is A

Solution and Explanation

Step 1: Define array indexing. In most programming languages (including C, C++, Java, Python, and JavaScript), arrays are zero-indexed. This means the first element is at index 0, the second element is at index 1, and so on.
Step 2: Evaluate the options. An array of size `n` will have indices from 0 to `n-1`. Therefore, the starting index is always 0.
Was this answer helpful?
0
0