When using the new feature of allocatable elements within derived types such as:
type sample
real*8, allocatable :: x(:)
end type
type(sample), allocatable :: test(:)
When you deallocate "test", do you need to deallocate "x" first, or is this done automatically in the deallocation of "test"?
链接已复制
2 回复数