Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

List of Scalar Data Types

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.

like image 794
Jimmery Avatar asked Nov 09 '12 16:11

Jimmery


1 Answers

  • 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^64

Source.

like image 149
trojanfoe Avatar answered Oct 11 '22 16:10

trojanfoe