Search:

Type: Posts; User: shashinitjsr

Search: Search took 0.00 seconds.

  1. Replies
    1
    Views
    909

    Program crashes while running!!!

    The code below is for reversing every k nodes of the linked list. While running the Program it crashes. Can anyone please elaborate why this is happening.



    #include<stdio.h>
    #include<stdlib.h>...
  2. Replies
    3
    Views
    1,206

    Segmentation fault

    Below is the code for segregating odd and even nodes of linked list such that the even nodes come before odd nodes.(e.g. for list 1->3->2->5->4->6 the output should be 2->4->6->1->3->5)



    ...
  3. Replies
    2
    Views
    3,062

    Pointer related problem

    The following function readline() is used to read the lines from console and store the pointers to each line into the *lineptr[MAXLINES].



    #define MAXLINES 5000
    #define MAXLEN 1000

    int...
Results 1 to 3 of 3