Search:

Type: Posts; User: chopin17

Search: Search took 0.01 seconds.

  1. Replies
    2
    Views
    1,005

    another one on linked lists

    first sorry about my english ....
    I have a "sortedInsert" function that suppose to take a value an insert it to the correct place in a sorted list.
    The SortedInsert MUST have the followin...
  2. Replies
    6
    Views
    1,602

    .

    Thanks Citizen
  3. Replies
    6
    Views
    1,602

    .

    sorry citizen i didn't see your post before my second reply.
    So if I get it right you say that
    - malloc allocates memory and "holds" that area until free is called ?
    - And if I hadn't use 'x'...
  4. Replies
    6
    Views
    1,602

    ..

    So the x pointer in main is valid because of malloc.

    so if we modify the code like this


    struct node *create(int val)
    {
    struct node *ndPtr;
    struct node nd;
    nd.data = val;
  5. Replies
    6
    Views
    1,602

    Can someone please explain ?

    First forgive me about my english ...

    suppose we have the following code snippet


    #include

    struct node
    {
    int data;
Results 1 to 5 of 5