Fortran Wiki storage_size

Description

Returns the storage size of argument a in bits.

Standard

Fortran 2008 and later

Inquiry function

Syntax

result = storage_size(a [, kind])

Arguments

• a - Shall be a scalar or array of any type.
• kind - (Optional) shall be a scalar integer constant expression.

Return Value

The result is a scalar integer with the kind type parameter specified by kind (or default integer type if kind is missing). The result value is the size expressed in bits for an element of an array that has the dynamic type and type parameters of a.