Deleting a node C

Here, like insertion we need the information as to which node is to be deleted. It can be the first node or any other node. So again there are two different considerations.
code snippet for Deletion of node

Deleting a node
If first node to be deleted

first node to be deleted
Node is freed using the function free.
If node whose e_no = 8 is to be deleted.

Deleting a node

All rights reserved © 2018 Wisdom IT Services India Pvt. Ltd DMCA.com Protection Status

C Topics