Westonci.ca offers fast, accurate answers to your questions. Join our community and get the insights you need now. Get immediate and reliable solutions to your questions from a community of experienced professionals on our platform. Explore comprehensive solutions to your questions from knowledgeable professionals across various fields on our 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.