?
Find the error (if any) in the following code snippet for pop operation.
Find the error (if any) in the following code snippet for pop operation.
void pop() //removing an element from a stack
{
printf(“%s”, stack[top++]);
}
void pop() //removing an element from a stack
{
printf(“%s”, stack[top++]);
}
Join the Discussion
Login to post a comment or share your explanation.
Login