Question: Write a function called pop(), which removes a node from the top of a stack of characters. The function should return a copy of the
Write a function called pop(), which removes a node from the top of a stack of characters. The function should return a copy of the data found at the top of the stack. Precondition: stack is not empty. The node is defined below:
typdef struct node
{
char data; struct node *pNext;
}
Node;
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
