SIZEOF

Inquiry Intrinsic Function (Specific): Returns the number of bytes of storage used by the argument. This is a specific function that has no generic function associated with it. It must not be passed as an actual argument.

Syntax

result = SIZEOF (x)

x
Can be a scalar or array (of any data type). It must not be an assumed-size array.

Results:

The result is of type INTEGER(4) on ia32 processors; INTEGER(8) on Alpha and ia64 processors. The result value is the number of bytes of storage used by x.

Examples

SIZEOF (3.44)              ! has the value 4
SIZEOF ('SIZE')            ! has the value 4