Can I Directly Initialize a Derived type that has allocatable variable in it.
In the following Program, I want to initialize the derived type variable "Zero" to contain 0. Is it possible?
PROGRAM testProgram
TYPE IntegerType
INTEGER, ALLOCATABLE :: Num
END TYPE IntegerType
TYPE(IntegerType), PARAMETER :: Zero = IntegerType(ALLOCATE(0))
print*, Zero
END PROGRAM testProgram