STORAGE_SIZE (The GNU Fortran Compiler)

### 8.272 `STORAGE_SIZE` — Storage size in bits ¶

Synopsis:

  `RESULT = STORAGE_SIZE(A [, KIND])`

Description:

  Returns the storage size of argument A in bits.

Class:

  Inquiry function

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.

Standard:

  Fortran 2008 and later

See also:

  `C_SIZEOF` — Size in bytes of an expression,
  `SIZEOF` — Size in bytes of an expression