Hi,
I am attaching this code I wrote for linked list of 3 nodes (2 dummies and 1 node).. For some reason it is giving me a segmention fault when I run the code. it executes till the last and prints what is stored. The problem occurs at the free() stage. It says segmentation fault.Please help..thanks in advance.