Skip to content
Snippets Groups Projects
Commit 5401bb7f authored by richarda.tyarks's avatar richarda.tyarks
Browse files

change variable name val into value in function : stack_push

parent da2c2fb5
No related branches found
No related tags found
1 merge request!7add function stack_push
This commit is part of merge request !7. Comments created here will be created in the context of that merge request.
...@@ -24,7 +24,7 @@ void stack_push(stack *s, int value) ...@@ -24,7 +24,7 @@ void stack_push(stack *s, int value)
} }
s->top++; s->top++;
s->data[s->top] = val; s->data[s->top] = value;
} }
void stack_pop(stack *s, int *value) { void stack_pop(stack *s, int *value) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment