Skip to content

Commit

Permalink
Stack_Array
Browse files Browse the repository at this point in the history
배열로 만든 스택
  • Loading branch information
hyejun0608 committed Sep 21, 2020
1 parent d4d7f52 commit 6691e66
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion stack_array.c
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ int push(int* stack, int value) {

int pop(int* stack) {
if (isEmpty()) return printf("Stack is empty\n");
else stack[top--] = 0;
else return stack[top--];
}

int isFull() {
Expand Down

0 comments on commit 6691e66

Please sign in to comment.