SIZEOF— Size in bytes of an expression
SIZEOF(X)calculates the number of bytes of storage the expression
N = SIZEOF(X)
|X||The argument shall be of any type, rank or shape.
POINTERattribute, the number of bytes of the storage area pointed to is returned. If the argument is of a derived type with
ALLOCATABLEcomponents, the return value doesn't account for the sizes of the data pointed to by these components.
integer :: i real :: r, s(5) print *, (sizeof(s)/sizeof(r) == 5) end
The example will print
.TRUE. unless you are using a platform
REAL variables are unusually padded.