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]

Reply via email to