C.1. Datentypen
Name | Bedeutung | Speicherplatz/Wertebereich |
---|---|---|
int | Ganze Zahl | 4 Bytes (+/− 2 Milliarden) |
long | Große Ganzzahl | 8 Bytes (+/−9*10^18) |
float | Normale Dezimalzahl | 4 Bytes (bis über +/−10^30) |
double | Dezimalzahl mit höherer Genauigkeit | 8 Bytes (bis über +/−10^300) |
string | Zeichenfolge | bis 2 Milliarden Zeichen |
char | Einzelzeichen | 2 Bytes |
bool | Schaltvariable | 1 Byte (true/false) |
Typ[] | Array | abhängig von Datentyp und Anzahl |
Get Spieleprogrammierung mit dem XNA Framework: Entwickeln für PC und Xbox now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.