How to access elements of a dynamically allocated structure(node type in link list) via a pointer structure (of previous type). This pointer structure is a element of a pointer structure and made to point to the dynamically allocated structure.I am not able to use (l->connect)->idn , it’s showing an error.here, l is a pointer structure with an element connect which is a pointer structure to a list node.I am trying to access idn element of that node via l.
I didn’t exactly understand your question. Could you please add the code snippet you are referring to, which gave you error. The declarations of the structure would also help to understand.
1 Like