another method would be as follows

Discussion in 'C Programming' started by celsius, Jan 5, 2005.

  1. celsius

    celsius Guest

    sn* reverse(sn *p)
    {
    sn *prev,*curr;
    prev = NULL;
    curr = p;

    while(curr)
    {
    p = p -> next;
    curr -> link = prev;
    prev = curr;
    curr = p;
    }

    return prev;
    }
    --
     
    celsius, Jan 5, 2005
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Mikey
    Replies:
    7
    Views:
    818
    Mikey
    Dec 12, 2003
  2. Girish
    Replies:
    1
    Views:
    943
    Fabien R
    Apr 14, 2005
  3. Hari
    Replies:
    3
    Views:
    395
    Edward Elliott
    May 12, 2006
  4. Replies:
    1
    Views:
    377
  5. celsius

    another method is as follows

    celsius, Jan 5, 2005, in forum: C Programming
    Replies:
    0
    Views:
    286
    celsius
    Jan 5, 2005
Loading...

Share This Page