I'm currently trying to figure out how to assign a node found in another struct to a variable.
I intend to do something like
this is the structCode:int access(struct randomstruct *point) { struct node *trial; trial = malloc(sizeof(*trial)); trial = point->start;
The compiler tells me trial and point->start are incompatible, but I'm quite sure point->start is of data type 'node' as well...Code:struct randomstruct { /*codes*/ struct node *start; };
How can I fix this?