Skip to Main Content

Computing languages generally adopt a different naming style for each data type. Therefore, a reference table is required for data exchange. Table 4 summarizes the cross-referencing between the basic data types in Fortran and C + +.

Table 4

Cross-referencing between basic data types in Fortran and C + +

Fortran data typeC ++ data typeFortran data typeC ++ data type
INTEGER(1) char CHARACTER(1) unsigned char 
INTEGER(2) short COMPLEX(4) struct complex4{ 
INTEGER(4) int, long  Float real, image; 
REAL(4) float COMPLEX(8) struct complex8{ 
Fortran data typeC ++ data typeFortran data typeC ++ data type
INTEGER(1) char CHARACTER(1) unsigned char 
INTEGER(2) short COMPLEX(4) struct complex4{ 
INTEGER(4) int, long  Float real, image; 
REAL(4) float COMPLEX(8) struct complex8{ 

Close Modal

or Create an Account

Close Modal
Close Modal