Ask Question
10 July, 07:05

What happens when the programmer tries to access an array cell whose index is greater than or equal to its logical size?

+3
Answers (1)
  1. 10 July, 11:03
    0
    When a programmer tries to access an item in an array cell whose index is greater than or equal to the array's logical size, this data element or item is garbage. This means that currently, the item is not the part of the program's useful data. Garbage contains objects or data which will not be used by a program running on it. So the value returned could be either of the two:

    Value would be an arbitrary or random number if it is an array of numbers. Arbitrary means that the value is not predefined or specified in advance. Value returned would be null if it is an array of objects.
Know the Answer?
Not Sure About the Answer?
Find an answer to your question ✅ “What happens when the programmer tries to access an array cell whose index is greater than or equal to its logical size? ...” in 📘 Computers and Technology if you're in doubt about the correctness of the answers or there's no answer, then try to use the smart search and find answers to the similar questions.
Search for Other Answers