EHLO Raju!
> struct a
> {
> int x;
> void *y;
> };
> struct b
> {
> char *u;
> int v;
> float z;
> };
> y1 = (struct b *)x1;
probably y1 = *((struct b*)x1->y) ?
> printf("%s\n",y1.u);
> what I want to know is that is it possible to access the struct b
> component in struct a without using the temperory variable y1?
((struct b *)x1->y)->u
--
____\___\___
(_(\|,|_|,|_ Gassho! [http://dione.ids.pl/~pborys][mr MUA home]
| | |. [teksty o zen,programowaniu,moje sf,xfaq_pl, inne]
- accessing a structure inside a structure Raju K V
- Re: accessing a structure inside a structure Kurt Wall
- Re: accessing a structure inside a structure Przemek Borys
- Przemek Borys
