Answer to Question #26695 in Action Script | Flash | Flex | ColdFusion for alie

Question #26695
What happens if your program tries to access an array element with an out-of-range subscript?
1
Expert's answer
2013-03-19T10:26:37-0400
For different programming languages different events willhappen:
Access violation and program termination for programs in C++, Delphi, Pascal
Out of index exception for OO languages: Java, C#, Python etc.
Another situation with PHP and Javascript: in these languages operator of
reading by index will return an empty value (Null, None, NoN, undefined etc)

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS