Tipe-tipe variabel dalam C++ dapat dilihat pada tabel di bawah i
Nama deklarasi | Range | Tipe |
char | -128 - 128 | Character |
unsigned char | 0 - 255 | Unsigned char |
signed char | -128 - 127 | Signed character (sama dengan char) |
Int | -32768 - 32767 | Integer |
unsigned int | 0 - 65535 | Unsigned integer |
signed int | -32768 - 32767 | Signed integer (sama dengan int) |
short int | -32768 - 32767 | Short int |
unsigned short int | 0 - 65535 | Unsigned short int |
signed short int | -32768 - 32767 | Signed short int (sama dgn short int) |
Long | -2147483648 - 2147483648 | Long |
long int | -2147483648 - 2147483648 | Long integer (sama dgn long) |
signed long int | -2147483648 - 2147483648 | Signed long int (sama dgn long int) |
unsigned long int | 0 - 4294967295 | Unsigned long int |
Float | -3.4E+38 -3.4E+38 | Floating point |
Double | -1.7E+308 - 1.7E+308 | Double floating-point |
long double | -1.7E+308 - 17E+308 | Long double floating point |
Operator juga mempunyai beberapa pembagian:
- Operator Aritmatika
- Operator Relasional
- Operator Logika
- Operator Increment Dan Decrement
- Operator Kondisional
- dll.
0 comments:
Posting Komentar