STORAGE_SIZE intrinsic function
Standard: F77 F90 F95 F2003 F2008
 Example Program
<Syntax>
STORAGE_SIZE ( A [ , KIND ] )

A : scalar or array of any type and rank;
KIND : scalar Integer constant expression;

Result : Integer or Integer(Kind=KIND).
<Semantics>

This function returns the size, in bits, that would be occupied in memory by an array element with the dynamic type and type parameters of A.

This is an inquiry function, so A need not be defined; indeed, if it is not CLASS(*) and does not have any deferred type parameters, it is permitted to be disassociated or unallocated.

<Related>
BIT_SIZE intrinsic function, LEN intrinsic function, SIZE intrinsic function.