RCS file: delete_linked_list.c,v
Working file: delete_linked_list.c
head: 1.13
branch:
locks: strict
access list:
symbolic names:
keyword substitution: kv
total revisions: 13; selected revisions: 13
description:
Code to demonstrate how to delete alternate nodes in a single linked list in C language.
—————————-
revision 1.13
date: 2014/02/21 05:03:53; author: root; state: Exp; lines: +4 -0
Segmentation fault occurs.
Issue:For an odd number of nodes the code was not working properly,but for an even number the alternate getting perfectly.
Status:Code is working correctly to delete alternate nodes in the linked list in C.
—————————-
revision 1.12
date: 2014/02/21 04:49:15; author: root; state: Exp; lines: +2 -1
Prototype of the delete_alternate_nodes() is changed.
—————————-
revision 1.11
date: 2014/02/21 04:45:29; author: root; state: Exp; lines: +17 -17
definition of the delete_alternate_nodes() function is changed including its prototype.
Updation is done to update the value of the new pointer.
—————————-
revision 1.10
date: 2014/02/21 04:21:24; author: root; state: Exp; lines: +10 -2
Logical error fixed.
Issue:After reaching the end of the linked list,the pointer is trying to refer to dereference NULL.
Checking……………
—————————-
revision 1.9
date: 2014/02/21 04:11:22; author: root; state: Exp; lines: +1 -1
Syntax error fixed.
—————————-
revision 1.8
date: 2014/02/21 04:05:42; author: root; state: Exp; lines: +16 -0
delete_alternate_nodes() function is implemented to delete the alternate nodes in the linked list.
checking…..
—————————-
revision 1.7
date: 2014/02/21 03:22:46; author: root; state: Exp; lines: +16 -0
Prototype of the display_nodes() function is declared.display_nodes() function will display the nodes in the linked list.
Checking…..
—————————-
revision 1.6
date: 2014/02/21 03:16:36; author: root; state: Exp; lines: +26 -1
Prototypes of the insert_info() and create_node() functions are declared.create_node() function will insert a node at the end of the linked list.
Checking,,,,,,,
—————————-
revision 1.5
date: 2014/02/21 03:11:57; author: root; state: Exp; lines: +17 -0
Gave definition of the create_list() function.
—————————-
revision 1.4
date: 2014/02/21 03:07:38; author: root; state: Exp; lines: +19 -1
Prototype of the create_list() function is declared.A flag variable is also used to keep track of whether the linked list is created or not.
—————————-
revision 1.3
date: 2014/02/21 03:03:20; author: root; state: Exp; lines: +20 -0
Header file:<stdlib.h> is included to support the exit() function.exit() function is used to help terminate the program in case the user wants to terminate the program.
—————————-
revision 1.2
date: 2014/02/21 03:00:47; author: root; state: Exp; lines: +9 -0
A layout is prepared for the user to assist him choosing the options.
—————————-
revision 1.1
date: 2014/02/21 02:57:51; author: root; state: Exp;
Initial revision
=============================================================================