next up previous
Next: About this document ... Up: Common Fortran Errors Previous: 7. Mismatch of Numbers

8. Writing Beyond an Array or Variable

If you assign values to array elements beyond the defined bounds of an array you may overwrite other variables (with bizarre results). This can also happen if you accidentally assign a complex, double precision, or real to an integer, or assign a double precision or complex to a real, for example. Don't forget that the array defined by ``array(n)'' consists of the elements 1 to n, not 0 to n-1.



Daniel Mitchell
1999-03-08