blob: 305cb40f3c9d66a802c9c3dd96fc7b7646255de3 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
(https://www.ibm.com/support/knowledgecenter/SSLTBW_2.3.0/com.ibm.zos.v2r3.cbcpx01/datatypesize64.htm)
ILP32 (32-bit environment) LP64 (64-bit environment)
size in bytes size in bytes
=========================== ================================
char 1 1
short 2 2
int 4 4
long 4 8
long long 8 8
float 4 4
double 8 8
long double 16 16
pointer 4 8
wchar_t 2 4 Other UNIX platforms usually have wchar_t 4 bytes for both
32-bit and 64-bit mode
size_t 4 8 unsigned type
ptrdiff_t 4 8 signed type
|