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)
The expert did excellent work as usual and was extremely helpful for me.
"Assignmentexpert.com" has experienced experts and professional in the market. Thanks.
Comments