sizeof(**abc) will be 4, sizeof(*abc) will also be 4 and sizeof(abc) will be 3
I think it should be, apart from filling out the structure,
sizeof(**abc) will be 3, sizeof(*abc) will also be 4 and sizeof(abc) will be 4 ^^^ ^^^ Change here change here
To get a pointer to a member variable c do
&(*abc)->c
Note the brackets around *abc . The reason for this is that -> has a higher priority than * , and therefore you need to make sure that the first dereference (moving from pointer to pointer to pointer) occurs first.
Or you can do
&(**abc).c
For the same reason, in parentheses ... you need to make sure that you dereference (twice) before applying the select-through-object-name element . .
Jimbo source share