8 ชนิดตัวเลข


ชนิดคียร์เวิร์ดจำนวนไบต์ขนาด
Characterchar1–128 to 127
Short integershort2–32767 to 32767
Integerint4–2,147,483,647 to 2,147,438,647
Long integerlong4–2,147,483,647 to 2,147,438,647
Long long integerlong long8–9,223,372,036,854,775,807 to 9,223,372,036,854,775,807
Unsigned characterunsigned char10 to 255
Unsigned short integerunsigned short20 to 65535
Unsigned integerunsigned int40 to 4,294,967,295
Unsigned long integerunsigned long40 to 4,294,967,295
Unsigned long long integerunsigned long long80 to 18,446,744,073,709,551,615
Single-precision floating-pointfloat41.2E–38 to 3.4E381
Double-precision floating-pointdouble82.2E–308 to 1.8E3082


No comments:

Post a Comment