kerdesek
Valenta Ferenc
ferenc.valenta at vhl.hu
Wed Aug 31 18:16:02 CEST 2005
hoyuka hoya wrote:
> typedef struct Lofasz {
> int size;
> char data[0];
> };
>
> Ezek utan egy Lofasz strukturat, amibe 1024 byte-ot lehet belepakolni, igy
> lehet letrehozni:
Ertem, csak nem igy csinaltam volna, mert ez nem mukodik.
Az a kerdes, hogy ha a fenti peldaban a char data[0] helyett
char *data-t irok, akkor az jo, de 100% ugyanaz mint a data[0]?
Koszi mindenkinek az eddigi segitseget!
--
Valenta Ferenc <ferenc.valenta at vhl.hu> Volcano/Mentor Graphics
"My love is REAL, unless declared INTEGER"
More information about the Elektro
mailing list