hellllpppppp !!!!!! c, c++, fortran

Discussion in 'Programmer's Corner' started by kitibwa, Apr 24, 2008.

  1. kitibwa

    Thread Starter New Member

    Apr 10, 2008
    3
    0
    Implement two short programs, in two different programming languages
    of your choice( mainly c, c++, fortran), that reverse a linked list. For example, using C,
    and starting with a linked list represented by the structure
    struct List_t {
    int item;
    struct List_t *next;
    };
    implement the function
    struct List_t *reversel(struct List_t *list);
    that takes the list 'list' and returns the list but with the order
    of the nodes reversed.
     
  2. Dave

    Retired Moderator

    Nov 17, 2003
    6,960
    144
    You gave us the question and nothing else. Perhaps you could do with having a look at this and adding a few more details.

    Dave
     
Loading...