How would you reqiret the following statement using the structure pointer operator: *(*(strPtr).num = 10

I've never seen this in my book so I'm confused to what it means and how to rewrite it.
That can't be the complete expression, because the number of closing parentheses doesn't match the number of opening ones.
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.