Hi,

My problem is when I insert stuff into the linked list and then print it out the output I recieve is backwards.
Ex: input: 12345
output: 54321
So is there a way I can change my insertLL to correct this problem?
void insertLL(node *& L, node * temp)
{
temp->next=L;
L=temp;
}

Thank you in advance