peschmae
28-01-2005, 08:58
int field[3][3];
int* f = field;
da meckert bei mir gcc -Wall. Was von Zuweisung von inkompatiblem Pointertyp. Funktionieren tuts natürlich trotzdem, aber irgendwie störts.
int* f = (int*)field;
bringt -Wall zum schweigen. Aber irgendwie ist mir die Sache noch nicht ganz klar. Ist nicht field vom Typ int*?
MfG Peschmä, der heute damit (erfolglos) drei Informatikassistenten beschäftigt hat
int* f = field;
da meckert bei mir gcc -Wall. Was von Zuweisung von inkompatiblem Pointertyp. Funktionieren tuts natürlich trotzdem, aber irgendwie störts.
int* f = (int*)field;
bringt -Wall zum schweigen. Aber irgendwie ist mir die Sache noch nicht ganz klar. Ist nicht field vom Typ int*?
MfG Peschmä, der heute damit (erfolglos) drei Informatikassistenten beschäftigt hat