next up previous contents
Next: Array I/O Example Up: Arrays Previous: Deallocating Arrays

Array I/O

The conceptual ordering of array elements is useful for defining the order in which array elements are output. If A is a 2D array then:

    PRINT*, A

would produce output in the order:

  A(1,1),A(2,1),A(3,1),..,A(1,2),A(2,2),..

    READ*, A

would assign to the elements in the above order.

This order could be changed by using intrinsic functions such as RESHAPE, TRANSPOSE or CSHIFT.

For more information, click here gif


next up previous contents
Next: Array I/O Example Up: Arrays Previous: Deallocating Arrays

Adam Marshall ©University of Liverpool, 1996
Fri Dec 6 18:56:08 GMT 1996
Not for commercial use.