C program for delete a node from linked list

Questions by praveen.g

Showing Answers 1 - 3 of 3 Answers

Yaa i am writing the full program here for better understanding:
This program will be run on Turbo C++ 3.0 without any error or warning.
<--------------------------------------------------------------------------------------------->


Code
  1. #include

  2. #include

  3. //Declaring node of linklist//declaration of all function//initialize the pointer to NULL(it does not point to any node)"nLinklist : n""nAfter deleting node: n");

  4. display(&p);

  5. }

  6.  

  7.  

  8. //this is the function by which we can delete a node from a linklist// Here temp points to the current node and old points to the previous node

  9. //num-->element to be deleted//if element found//if element not found, go to the next node"Element not found""t %d",temp->data);

  10. temp = temp->link; }

  11. }

  12. }



<----------------------------------------------------------------------------------------->

oly

  • Sep 14th, 2014
 

What is the program for delete a list in an linked list?

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions