next up previous contents
Next: Selected Intrinsic Functions Up: Arrays Previous: Where Construct

 

Vector-valued Subscripts

A 1D array can be used to subscript an array in a dimension. Consider:

    INTEGER, DIMENSION(5) :: V = (/1,4,8,12,10/)
    INTEGER, DIMENSION(3) :: W = (/1,2,2/)

For more information, click here gif

Now try this question gif


next up previous contents
Next: Selected Intrinsic Functions Up: Arrays Previous: Where Construct

©University of Liverpool, 1997
Wed May 28 23:37:18 BST 1997
Not for commercial use.