Professional Documents
Culture Documents
C++Lecture 1
C++Lecture 1
Variable Types
Numerical Range
Keyword
Low
High
Digits of Bytes of
Precision Memory
bool
false
true
n/a
char
-128
127
n/a
short
-32,768
32,767
n/a
int
-2,147,483,648 2,147,483,648
n/a
long
-2,147,483,648 2,147,483,648
n/a
float
3.4 x 10-38
3.4 x 1038
double
1.7 x 10-308
1.7 x 10308
15
8
2
Low
High
Bytes of
Memory
unsigned char 0
255
unsigned short 0
65,535
4,294,967,295
4,294,967,295
unsigned int
unsigned long 0