source:
CIVL/examples/fortran/badExamples/badIndexOutOfBound.f@
fffb3b88
| Last change on this file since fffb3b88 was b7a3ce6, checked in by , 10 years ago | |
|---|---|
|
|
| File size: 196 bytes | |
| Rev | Line | |
|---|---|---|
| [b7a3ce6] | 1 | PROGRAM TEST |
| 2 | INTEGER N | |
| 3 | PARAMETER (N=10) | |
| 4 | REAL ARRAY(N) !The index of ARRAY should from 1 to 10. | |
| 5 | ARRAY(11) = 1.0 !It uses an index out of the bound. | |
| 6 | END | |
| 7 | ||
| 8 | ||
| 9 |
Note:
See TracBrowser
for help on using the repository browser.
