9.243. SIZEOF
9.243 SIZEOF — Size in bytes of an expression
- Description:
-
SIZEOF(X)
calculates the number of bytes of storage the expressionX
occupies. - Standard:
- GNU extension
- Class:
- Inquiry function
- Syntax:
-
N = SIZEOF(X)
- Arguments:
-
X The argument shall be of any type, rank or shape. - Return value:
- The return value is of type integer and of the system-dependent kind C_SIZE_T (from the ISO_C_BINDING module). Its value is the number of bytes occupied by the argument. If the argument has the
POINTER
attribute, the number of bytes of the storage area pointed to is returned. If the argument is of a derived type withPOINTER
orALLOCATABLE
components,