Accessing structure through pointers [c]
- by Blackbinary
I've got a structure which holds names and ages.
I've made a linked-list of these structures, using this as a pointer:
aNode *rootA;
in my main.
Now i send **rootA to a function like so
addElement(5,"Drew",**rootA);
Because i need to pass rootA by reference so that I can edit it in other functions (in my actual program i have two roots, so…