another method is 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;
    }
    --
    comp.lang.c.moderated - moderation address: -- you must
    have an appropriate newsgroups line in your header for your mail to be seen,
    or the newsgroup name in square brackets in the subject line. Sorry.
     
    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:
    816
    Mikey
    Dec 12, 2003
  2. Girish
    Replies:
    1
    Views:
    942
    Fabien R
    Apr 14, 2005
  3. Hari
    Replies:
    3
    Views:
    394
    Edward Elliott
    May 12, 2006
  4. Replies:
    1
    Views:
    377
  5. celsius

    another method would be as follows

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

Share This Page