you haven't declared a type for
, so the compiler assumes it is an
. You can't then expect it to behave as a pointer on the left side of
. What you need is to replace that line with
display(struct node *front)
Then either of your
calls will compile.