The code will cause error. Because the subscript operator accesses element that not existed, the behaviour is undefined.