This is out of bound access to an array.this should lead a crash in WIN & UNIX progarmming env but in case of DOS it can run fine.Either way it is a logical problem it should not be done.
When we define a array , we get memory from Operating system. In this case you are using more memory than op sys given to you that extra memory may belong to some other variable or array etc......