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>...
Type: Posts; User: shashinitjsr
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>...
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)
...
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...