1.SINGLE LINKED LIST Procedure for creation of single linked list: STEP-1 : Declaring a variable named as “item”.Ie the element what we place in the linkedlist of the new node. STEP-2 : Read the value in “item”. Set first=last=null and next=null. STEP-3: Create a new node named as temp and assign the variable item to data part andassign Address of the node temp to null. temp.data=item; temp.next=null; STEP-4: Check the address part of the first node Check if first=null Then assign first=last=temp Other wise Then assign the new node tolast.next=temp last=temp STEP-6 : Repeat STEP-3 until you read required nodes. Procedure for display the linked list: STEP-1 : Check whether the list having nodes or not i.e Check if first=null ...
Here you find computer concepts