Pointers - Programmers Heaven

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

Pointers

PascalgameboyPascalgameboy Posts: 7Member
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?

Comments

  • Actor21Actor21 Posts: 35Member
    : 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.

Sign In or Register to comment.