Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not return the pointer? #3

Open
Pupil2013 opened this issue Dec 3, 2020 · 1 comment
Open

Not return the pointer? #3

Pupil2013 opened this issue Dec 3, 2020 · 1 comment

Comments

@Pupil2013
Copy link

Pupil2013 commented Dec 3, 2020

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?

@AlokikPathak
Copy link
Owner

@Pupil2013 could you please mention the Program/Data structure name? I shall test and update if required.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants