Sun Studio 12: C User's Guide

C.1.13 Architecture (J.3.13)

The implementation-defined number, order, and encodings of objects not explicitly specified in the 1999 C standard have be defined elsewhere in this chapter.

Table C–4 Results From the sizeof Operator in Bytes

Type  

Size in Bytes 

char 

1 

short 

2 

int 

4 

long 

4 

long v9 

8 

long long 

8 

float 

4 

double 

8 

long double (SPARC)  

16 

long double (x86)

12 

pointer 

4 

pointer v9 

8 

 

_Complex float 

8 

 

_Complex double 

16 

 

_Complex long double 

32 

 

_Imaginary float 

4 

 

_Imaginary double 

8 

 

_Imaginary long double (SPARC)  

16 

 

_Imaginary long double (x86)

12