Arrays with variable subscripts

What happens if the user running our variable subscript demonstration program enters a value of 10? Of 11? Of -1? Why does it happen?