12. Suppose you have an array of 10 elements. What are the legalindex values that can be used in the array? What happens if you usean index that is outside this legal range? How can we write code tohandle a situation when someone uses an illegal index value? (10points)
Expert Answer
An answer will be send to you shortly. . . . .