Unexpected behaviour when trying to implement a queue with two stacks in C
I am dealing with a very popular problem of implementing a queue with two stacks and doing it in C language as it gives me an excuse to brush up my knowledge of structs and pointers .