Datentypen Flashcards

1
Q

Datentyp für Ganze Zahlen..

A

integer ( int )

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Welche besondere Fälle von ganzen Zahlen gibt es?

A

short und long

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Beispiele Integer-Variablen ohne int

A
  • unsigned short zaehler;
  • short Wenig;
  • unsigned Positiv;
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Schlüsselwort für positive Zahlen (einschließlich 0)

A

unsigned

Bsp: unsigned int zaehler;

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Größe von Datentyp int

A

2 oder 4 Bytes

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Größe von Datentyp char

A

1 Byte

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

einfachste Typ mit Nachkommastellen..

A

float

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Größe float

A

4 Bytes

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Größe double

A

8 Bytes

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Größe long double

A

je nach Compiler 10 bis 16 Bytes

i.d.R 12 Bytes

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Funktion um die konkrete Größe eines Typs zu erfragen

A

Bsp: cout << sizeof (double) << endl;

How well did you know this?
1
Not at all
2
3
4
5
Perfectly