Discover a world of knowledge at Westonci.ca, where experts and enthusiasts come together to answer your questions. Find reliable answers to your questions from a wide community of knowledgeable experts on our user-friendly Q&A platform. Discover in-depth answers to your questions from a wide network of professionals on our user-friendly Q&A platform.


What happen when a beginning programmer forgets that array subscripts start with 0?


Sagot :

Answer:

They failed to be a beginner.

The first element of the array is exactly contained in the memory location that array refers (0 elements away), so it should be denoted as array[0] . Most programming languages have been designed this way, so indexing from 0 is pretty much inherent to the language.