217. An allocated allocatable array can be passed to C as an explicit-shape array.#

topic: Interoperability with C and C++

Note

This tip is a draft1.

An ALLOCATABLE array does not have a C counterpart, but it can be ALLOCATED and passed to C as an explicit-shape array. This can be done for the allocated components of a derived type which is not itself interoperable.



1

From the perspective of FortranTip Browser, “draft” means that it hasn’t been edited for formatting, hasn’t had corresponding Fortran programs added, the text content hasn’t been enhanced, etc. Draft texts are extracted from the corresponding Tweet using the Twitter API.