32-bit: the size of the basic data type in a 64-bit operating system in bytes.
The length of the basic data type in C language:
32-bit:
Char: 1 byte (unchanged)
* (Pointer variable): 4 bytes (the addressing space of 32-bit machines is 4 bytes. Similarly, 64-bit compiler) (changed)
Short int: 2 bytes (unchanged)
Int: 4 bytes (unchanged)
Unsigned int: 4 bytes (unchanged)
Float: 4 bytes (unchanged)
Double: 8 bytes (unchanged)
Long: 4 bytes (changed)
Unsigned long: 4 bytes (change * is actually the address Length Value of the addressing control)
Long: 8 bytes (unchanged)
64-bit:
Char 1 byte (unchanged)
* (Pointer variable): 8 bytes
Short int: 2 bytes (unchanged)
Int: 4 bytes (unchanged)
Unsigned int: 4 bytes (unchanged)
Float: 4 bytes (unchanged)
Double: 8 bytes (unchanged)
Long: 8 bytes (changed)
Unsigned long: 8 bytes (change * is actually the address Length Value of the addressing control)
Long: 8 bytes (unchanged)
Except for the change of * and long with the length of the operating system, the others remain unchanged (compared with 32-bit and 64-bit)
Bool 1 byte char 1 byte int 4 byte float 4 byte doubl 8 byte long 8 byte
Oc:
64-bit system (the local machine is not a 32-bit system and cannot be tested ):
Nsstring 8-bit
Nsinteger 8-bit (Signed)
NSUInteger 8-bit (unsigned, no negative number)
Many variables in oc are actually pointers, so many 64-bit systems are 8-bit,
By the way, nsnumber is a basic type, but NSNumber is a class. If you want
NSMutableDictionary stores a value, which cannot be directly used by NSInteger. You must first convert it to the nsnumber class,
This article references http://blog.csdn.net/totogo2010/article/details/7655908