Passing a pointer by reference problem.

I'm not to sure why this doesn't work. I get a syntax error ',' for this comma on the call line.

1
2
3
4
5
6
7
8
9
10

The prototype.
Card* CreateDeck(Card*&, Card*&, Card*&);

The call.
head = CreateDeck(head,tail,newNode);

The function.
Card* CreateDeck(Card* &head, Card* &tail, Card* &newNode)
Exact error text? How head, tail and newNode are declared?
Topic archived. No new replies allowed.