CSharp C#
Expression | Constant value |
---|---|
sizeof(sbyte) | 1 |
sizeof(byte) | 1 |
sizeof(short) | 2 |
sizeof(ushort) | 2 |
sizeof(int) | 4 |
sizeof(uint) | 4 |
sizeof(long) | 8 |
sizeof(ulong) | 8 |
sizeof(char) | 2 (Unicode) |
sizeof(float) | 4 |
sizeof(double) | 8 |
sizeof(decimal) | 16 |
sizeof(bool) | 1 |
JAVA
Primitive Type | Size | Minimum Value | Maximum Value |
char | 16-bit | Unicode 0 | Unicode 216-1 |
byte | 8-bit | -128 | +127 |
short | 16-bit | -215 (-32,768) | +215-1 (32,767) |
int | 32-bit | -231 (-2,147,483,648) | +231-1 (2,147,483,647) |
long | 64-bit | -263 (-9,223,372,036,854,775,808) | +263-1 (9,223,372,036,854,775,807) |
float | 32-bit | 32-bit IEEE 754 floating-point numbers | |
double | 64-bit | 64-bit IEEE 754 floating-point numbers | |
boolean | 1-bit | true or false | |
void | ----- | ----- | ----- |
other type reference
http://www.techonthenet.com/
No comments:
Post a Comment