Ok I have the following code that works. My question is this: does the () around the *b isolate the pointer part from the member part? Trying to figure out why its nessary. Thanks.
Code:#include <stdio.h> struct x { int y; }; void test2(struct x * b) { (*b).y = (*b).y + 1; } void test(struct x a) { printf("%d\n", a.y); } int main (void) { struct x z; z.y = 5; test(z); test2(&z); test(z); return 0; }