Multiple choice technology programming languages

What is the last index number in an array of 100 chars?

  1. 99

  2. 100

  3. 101

  4. 100.0

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

Arrays in most programming languages use zero-based indexing. For an array of 100 characters, valid indices range from 0 to 99. The last index is therefore 99 (array length minus 1). This is a fundamental concept in languages like C, Java, JavaScript, and Python.