- #1
James889
- 192
- 1
Hello,
I have a question regarding pointers
Assume you have the following:
and
Is this the same as writing &((struct sockaddr *)*sa).sin_addr)
and &(struct sockaddr *)(*sa.sin_addr)
?
I have a question regarding pointers
Assume you have the following:
Code:
return &(((struct sockaddr_in*)sa)->sin_addr);
and
Code:
return &(struct sockaddr_in *)(sa->sin_addr);
Is this the same as writing &((struct sockaddr *)*sa).sin_addr)
and &(struct sockaddr *)(*sa.sin_addr)
?