Compiler | 32 bits | 64 bits |
char | 1 | 1 |
char * | 4 | 8 |
short | 2 | 2 |
unsigned short | 2 | 2 |
int | 4 | 4 |
Int * | 4 | 8 |
unsigned int | 4 | 4 |
float | 4 | 4 |
double | 8 | 8 |
long | 4 | 8 |
unsigned long | 4 | 8 |
long long | 8 | 8 |
Xcode7.0:
C:
unsigned long a = 0xffffffff;//4 bytes long long b = 0xffffffffffffffff;//8 bytes
Swift: