Skip to content

Update stack_using_linked_lists.c #620

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

Open
wants to merge 9 commits into
base: master
Choose a base branch
from
Prev Previous commit
Next Next commit
Update stack_using_linked_lists.c
  • Loading branch information
Shwetik authored Sep 30, 2020
commit 7bb6d594e8e914216e4828a797344e00ff009431
2 changes: 1 addition & 1 deletion data_structures/linked_list/stack_using_linked_lists.c
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ void push(struct node *p)
temp->info = item;

temp->link = top;
top = temp; //top of the stack points to newly added node.
top = temp;

printf("inserted succesfully\n");
}
Expand Down