Datentypen
Gepostet von Peter am 8. Jul 2009 in C++ / CPP | Keine Kommentare
| Datentyp |
Speicherplatz |
Wertebereich
|
| char |
1 Byte |
-128 bis +127 (für ASCII-Zeichen) |
| unsigned char |
1 Byte |
0 bis +255 (für erw. ASCII-Zeichen) |
| short int |
2 Byte |
-32.768 bis +32.767 |
| unsigned short int |
2 Byte |
0 bis 65.535 |
| long int |
4 Byte |
-2.147.483.648 bis 2.147.483.647 |
| unsigned long int |
4 Byte |
0 bis 4.294.967.295 |
| float |
4 Byte |
-3,4 * 10 hoch 38 bis 3,4 * 10 hoch 38 |
| double |
8 Byte |
-1,7 * 10 hoch 308 bis 1,7 * 10 hoch 308 |
| bool |
1 Byte |
true, false |