Hallo zusammen,

ich habe long text; definiert und wollte es im laufe des Programms auf 'textinhalt' setzen.

Der Compiler weist jedoch darauf hin, das folgendes nicht stimmt:

../test.c: warning: character constant too long for its type

Der Code sieht so aus:
...
long aktion;
...
if (aktion != 'funken')
Könnt Ihr was damit anfangen? Anscheinend habe ich den falschen Variablentyp.

Gibt es noch mehr wie diese:
char 1 Byte
short 2 Bytes
int 4 Bytes
long 4 Bytes
long long 8 Bytes
float 4 Bytes
double 8 Bytes

Danke und Grüße

popi