Im looking for a list of all the scalar data types in Objective C, complete with their ranges (max/min values etc).
Sorry for the simple question, Im just really struggling to find anything like this.
int An integer value between +/– 2,147,483,647.unsigned int An integer value between 0 and 4,294,967,296.float A floating point value between +/– 16,777,216.double A floating point value between +/– 2,147,483,647.long An integer value varying in size from 32 bit to 64 bit depending on architecture.long long A 64-bit integer.char A single character. Technically it’s represented as an int.BOOL A boolean value, can be either YES or NO.NSInteger When compiling for 32-bit architecture, same as an int, when compiling for 64-bit architecture,+/– 4,294,967,296.NSUInteger When compiling for 32-bit architecture, same as an unsigned int, when compiling for 64-bit architecture, value between 0 and 2^64Source.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With