A Query in "Pointers to Structures"
- From: "dbz" <puneetmehra.nsit@xxxxxxxxx>
- Date: 15 Jul 2006 05:10:56 -0700
Hello everyone. I have a query. Lets say that following is given:-
struct struct1{
char *word;
int n;
} *p;
QUERIES:
What does the following refer to?
1) p->word
2) (*p)->n
3) (*p)->word
4) *(p->word)
.
- Follow-Ups:
- Re: A Query in "Pointers to Structures"
- From: Rod Pemberton
- Re: A Query in "Pointers to Structures"
- From: Joe Wright
- Re: A Query in "Pointers to Structures"
- From: August Karlstrom
- Re: A Query in "Pointers to Structures"
- From: Tosha
- Re: A Query in "Pointers to Structures"
- Prev by Date: Re: Does malloc() reuse addresses?
- Next by Date: Re: A Query in "Pointers to Structures"
- Previous by thread: How to write a small graceful gcd function?
- Next by thread: Re: A Query in "Pointers to Structures"
- Index(es):
Relevant Pages
|
|