Supported data types for passing function return values

Table 1 lists the data types that can be passed as function return values from a C++ function to a Fortran routine.

Table 1. Supported data types for passing as function return values from C++ to Fortran
C++ Fortran
signed short int INTEGER*2
signed int, signed long int INTEGER*4
float REAL*4
double REAL*8
long double REAL*16
signed char INTEGER*1
unsigned char UNSIGNED*1