Merge two sorted linkedlist

Code is running absolutely fine on eclipse but on codingblocks ide no output is obtained. Please help.