In this section:
The table below illustrates the amount of storage required for the basic data
types associated with each language. In all the languages, pointers are
represented as 32-bit quantities.
Data |
Size |
C/C++ |
FTN77 |
FTN95 |
Integer |
1 |
char |
INTEGER*1 |
INTEGER (KIND=1) |
Integer |
2 |
short int |
INTEGER*2 |
INTEGER (KIND=2) |
Integer |
4 |
int |
INTEGER*4 |
INTEGER (KIND=3) |
Unsigned integer |
1 |
unsigned char |
- |
- |
Unsigned integer |
2 |
unsigned short int |
- |
- |
Unsigned integer |
4 |
unsigned int |
- |
- |
Logical |
1 |
char |
LOGICAL*1 |
LOGICAL (KIND=1) |
Logical |
2 |
short int |
LOGICAL*2 |
LOGICAL (KIND=2) |
Logical |
4 |
int |
LOGICAL*4 |
LOGICAL (KIND=3) |
Real |
4 |
float |
REAL; REAL*4 |
REAL (KIND=1) |
Real |
8 |
double |
REAL*8; DOUBLE PRECISION |
REAL (KIND=2) |
Real |
10 |
long double |
- |
REAL (KIND=3) |
Character |
1 |
char |
CHARACTER |
CHARACTER |