: hey, i have a problem with pointers, after a list created by : pointers is read how do i write the list in the reverse order? : A linked list is a stack. Copy the elements from one stack to another by repeatedly popping an element off the first stack and pushing it onto the other. The new stack will be in reverse order. Then just write out the second stack.
Comments
: pointers is read how do i write the list in the reverse order?
:
A linked list is a stack. Copy the elements from one stack to another by repeatedly popping an element off the first stack and pushing it onto the other. The new stack will be in reverse order. Then just write out the second stack.