Skip to content

Commit 7bb6d59

Browse files
authored
Update stack_using_linked_lists.c
1 parent e1bbff8 commit 7bb6d59

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

data_structures/linked_list/stack_using_linked_lists.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ void push(struct node *p)
5151
temp->info = item;
5252

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

5656
printf("inserted succesfully\n");
5757
}

0 commit comments

Comments
 (0)