How to do bubble sort on the linked list

https://ide.codingblocks.com/s/292062 why it gives segmentation fault


instead of || use &&
line 4 & 7