Next: Unäre Operatoren
Up: Datentypen, Operatoren, Arrays, Structs
Previous: Datentypen, Operatoren, Arrays, Structs
Intergers
int long short unsigned
Floats
float double
Characters
char unsigned char
Beispiele
int i, j, ein_langer_variablenname;
int index=1, zero=0;
float pi=3.1415;
char n, x='1', new_line='\n';
char name[] = "Gottfried Rudorfer";
char word[5] = {'h', 'e', 'l', 'l', 'o'};
int lotto[6], numbers[4] = {0, 1, 2, 3};
| © 1997 Gottfried Rudorfer, C++-AG, Lehrveranstaltungen, Abteilung für Angewandte Informatik, Wirtschaftsuniversität Wien, 3/19/1998 |