void addNode(int number){


    struct Node *newNode = malloc(sizeof(struct Node));

   

           newNode->number = number;

           newNode->next = NULL;

           newNode->next = head;

           head = newNode;


         

  

}


// print all numbers from head to the end of the lined list

void printNodes(){

    struct Node * node = head;

    while (node != NULL) {

        if (node != head)

            printf(" -> ");

        printf("%d", node->number);

        node = node->next;

    }

    printf("\n");

}


현재 이런식으로 되어있구 컴파일하면 메인에

   addNode(1);

    addNode(3);

    addNode(5);

    addNode(4);

    addNode(2);


    printNodes();


이런식으로 되어있기때문에 

결과가 2->4->5->3->1로 나오는데

여기서 제가 원하는거는 반대로 1->3->5->4->2가 나오게 해야되는데

자꾸 에러가 뜨네여 바꿀수있는 코드는 오직 addNode(int number) 이 function뿐입니다