Hey, I'm having a problem pushing a queue into a stack and Im stuck at how to fix it.
Here is my function that adds a queue into the stack
I know its in the underlined part, I just dont know what to assign to the stack.Code:void add_new_queue(struct stack* s, struct queue* q)
{
if(s->top == s->size)
expand_stack(s);
s->store[s->top] = q->store[q->front] ;
s->top++;
}