Skip to content

Not return the pointer? #3

Open
@Pupil2013

Description

@Pupil2013

Node* newNode(int d, int p){

Node* temp = (Node*)malloc(sizeof(Node));

temp->data = d;
temp->priority = p;

temp->next = NULL;

}
the code not return anythging?Can it work?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions