EmbLogic's Blog

Display elements of a linked list using recursion in C language

RCS file: display_linked_list.c,v
Working file: display_linked_list.c
head: 1.10
branch:
locks: strict
root: 1.10
access list:
symbolic names:
keyword substitution: kv
total revisions: 10;    selected revisions: 10
description:
Code to demonstrate how to display a linked list using recursion in C language.
—————————-
revision 1.10    locked by: root;
date: 2014/02/19 23:31:53;  author: root;  state: Exp;  lines: +18 -6
display_nodes() function is implemented successfully.The recursive calls are made in the program because the display_function calls itself again and again.
The base condition is also added to stop the recursive calls.

Status:The linked list is displayed correctly using recursion in the forward order.
—————————-
revision 1.9
date: 2014/02/19 23:20:32;  author: root;  state: Exp;  lines: +27 -1
create_node() function is implemented that inserts a node at the end of the linked list.
—————————-
revision 1.8
date: 2014/02/19 14:17:07;  author: root;  state: Exp;  lines: +12 -0
Implemented the body of the create_linked_list function.
Checking….
—————————-
revision 1.7
date: 2014/02/19 14:11:53;  author: root;  state: Exp;  lines: +1 -0
Prototype of the create_linked_list() function is declared.
Implementing the body of this function…….
—————————-
revision 1.6
date: 2014/02/19 14:09:46;  author: root;  state: Exp;  lines: +19 -1
create_linked_list() function is called that creates the start node of the linked list.A flag variable is used to check if the linked list is created already or not.
—————————-
revision 1.5
date: 2014/02/19 14:01:06;  author: root;  state: Exp;  lines: +2 -0
Declared two structure variables of type struct node and are initialized to NULL.
—————————-
revision 1.4
date: 2014/02/19 13:59:13;  author: root;  state: Exp;  lines: +5 -0
A structure is declared of type node,consisting of two data members.One is the info part and the other is the pointer to a structure of type struct node.
—————————-
revision 1.3
date: 2014/02/19 13:57:26;  author: root;  state: Exp;  lines: +15 -0
Header file:<stdlib.h> is included to support exit() function.It is used to end the program in case the user wants to end it.
—————————-
revision 1.2
date: 2014/02/19 13:53:24;  author: root;  state: Exp;  lines: +10 -0
A layout is prepared which displays the main menu to the user so that the user can enter a choice.
—————————-
revision 1.1
date: 2014/02/19 13:40:34;  author: root;  state: Exp;
Initial revision
=============================================================================

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>