Ask Question
4 March, 10:07

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

+4
Answers (1)
  1. 4 March, 10:52
    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?
Get 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 & Technology if there is no answer or all answers are wrong, use a search bar and try to find the answer among similar questions.
Search for Other Answers