Here is my situation
I have a stack that contain's queues. Assume that we have struct queue and struct stack declared. s points to the struct.
Now the problem is that it keeps printing the same thing over and over again it never ends. Like it'l sit there and print the number 9 forever.for(i = 0; i < s->top; i++)
{
for(x=s->store[i]->front;x<s->store[i]->back;x++)
{
printf("%d ", s->store[i]->store[x]);
}
}