Re: What u mean by this statemnet ?.
- From: Richard Heathfield <invalid@xxxxxxxxxxxxxxx>
- Date: Tue, 31 Jan 2006 07:41:59 +0000 (UTC)
Umesh said:
> what this statement &(*IR)->func means.
This takes the address of the func object that is a member of a structure
that is pointed to by a pointer which is in turn pointed to by IR.
Let's start with IR.
IR is a pointer to a pointer to a struct.
*IR is a pointer to a struct.
(*IR)-> dereferences the struct.
(*IR)->func refers to the func member of the struct.
&(*IR)->func takes the address of the func member.
> where IR is the pointer to structure
It isn't. At least, if it is, the compiler will emit a diagnostic for the
above code.
--
Richard Heathfield
"Usenet is a strange place" - dmr 29/7/1999
http://www.cpax.org.uk
email: rjh at above domain (but drop the www, obviously)
.
- References:
- What u mean by this statemnet ?.
- From: Umesh
- What u mean by this statemnet ?.
- Prev by Date: Re: how to develop library ( .a and .so files) ! URGENT!!!
- Next by Date: Re: union
- Previous by thread: What u mean by this statemnet ?.
- Next by thread: Re: What u mean by this statemnet ?.
- Index(es):
Relevant Pages
|