RANK(A) (Technical Specification)

Purpose

Returns the rank of a data object, such as an assumed-rank object.

Class

Inquiry function

Argument type and attributes

A
An INTENT(IN) argument. The corresponding actual argument can be an array or a scalar of any type.

Result type and attributes

Default integer scalar.

Result value

The result is the rank of A.

Examples

REAL :: a(10, 20)
PRINT *, RANK(a)
END
The output is as follows:
2