How would you reqiret the following statement using the structure pointer operator: *(*(strPtr).num = 10
Aug 18, 2015 at 9:57am
I've never seen this in my book so I'm confused to what it means and how to rewrite it.
Aug 18, 2015 at 10:12am
That can't be the complete expression, because the number of closing parentheses doesn't match the number of opening ones.
Aug 18, 2015 at 11:12am
In addition to that, what is the type of the variable
strPtr
?
Pointers do have unary
dereferencing operator
*
.
1 2 3 4 5 6 7 8 9 10 11 12 13 14
|
T * p;
int k;
p[x]
// is equal to
*(p+k)
// "special" case:
k=0;
p[0]
*(p+0)
*(p)
*p
|
Topic archived. No new replies allowed.