Page name:
C++ Class Variable Types [Exported view]
[RSS]
2005-12-16 18:00:33
# of watchers: 1
|
Fans: 0
| D20: 19 |
Back to C++ Class
These are the different standard variables availible in C++.
Note: If a variable is unsigned, it will always have a value greater than or equal to 0.
These are examples of variable declarations:
int IAmAnInteger;
unsigned int IAmPositive;
long Hi;
float DecimalsAreGoo
d
GUIDE:
Name - Full name
Low: Lowest regular value
High: Highest regular value
Precision: Accuracy (decimals)
Memory: Amount of bytes taken
Unsigned: Maximum unsigned value
char - Character
Low: -128
High: 127
Precision: N/A
Memory: 1
Unsigned: 225
short - Short
Low: -32,768
High: 32,767
Precision: N/A
Memory: 2
Unsigned: 65,535
int - Integer
Low: -2,147,483,648
High: 2,147,483,647
Precision: N/A
Memory: 4
Unsigned: 4,294,967,295
long - Long
Low: -9,223,372,038,854,775,808
High: 9,223,372,038,864,775,807
Precision: N/A
Memory: 8
Unsigned: 18,446,744,073,609,551,615
float - Floating Point
Low: 3.4 x 10^(-38)
High: 3.4 x 10^(38)
Precision: 7
Memory: 4
Unsigned: N/A
double - Double
Low: 1.7 x 10^(-308)
High: 1.7 x 10^(308)
Precision: 17
Memory: 8
Unsigned: N/A
long double - Long Double
Low: 3.4 x 10^(-4932)
High: 1.1 x 10^(4932)
Precision: 19
Memory: 10
Unsigned: N/A
[#top]
| Show these comments on your site |