Template:Datatypes: Difference between revisions

Template page
mNo edit summary
mNo edit summary
 
Line 1: Line 1:
<source lang="c">
<source lang="c">
void 0 bytes, 0bit, 0
void // 0 bytes 0 bit => 0
boolean 1 byte, 1 bit, 0/1
boolean // 1 byte 1 bit => 0/1; true/false
char 1 byte, 8 bit, -128..127
char // 1 byte 8 bit => -128..127
byte 1 bytes, 8 bit, 0..255
byte // 1 bytes 8 bit => 0..255
int 2 bytes, 16 bit, -32768..32767
int // 2 bytes 16 bit => -32768..32767
unsigned int 2 bytes, 16 bit, 0..65535
unsigned int // 2 bytes 16 bit => 0..65535
long 4 bytes, 32 bit, -2147483648..2147483647
long // 4 bytes 32 bit => -2147483648..2147483647
unsigned long 4 bytes, 32 bit, 0..4294967295
unsigned long // 4 bytes 32 bit => 0..4294967295
float 4 bytes, 32 bit -3.4028235E+38..3.4028235E+38
float // 4 bytes 32 bit => -3.4028235E+38..3.4028235E+38
double 8 bytes, 64 bit
double // 8 bytes 64 bit => a lot!
Array
Array

Latest revision as of 20:35, 1 December 2009

void		// 0 bytes 	0 bit 	=> 0
boolean		// 1 byte 	1 bit 	=> 0/1; true/false
char		// 1 byte 	8 bit 	=> -128..127
byte		// 1 bytes 	8 bit 	=> 0..255
int		// 2 bytes 	16 bit 	=> -32768..32767
unsigned int	// 2 bytes 	16 bit 	=> 0..65535
long		// 4 bytes 	32 bit 	=> -2147483648..2147483647
unsigned long	// 4 bytes 	32 bit 	=> 0..4294967295
float		// 4 bytes 	32 bit	=> -3.4028235E+38..3.4028235E+38
double		// 8 bytes 	64 bit	=> a lot!
	
Array
String
...