Hi, please edit your post and add: 1. PRE tags instead of CODE tags, for better readability; 2. a textual description of your linked lists; e.g. is head supposed to contain any data, or is it only pointing to the first real node? 3. a textual description of what Merge is supposed to do (which must include preconditions: what is assumed about its parameters, and what is promissed about its return value). Without it, the only thing anyone can say is "if it compiles, it will do what it will do". :)
Luc Pattyn [Forum Guidelines] [Why QA sucks] [My Articles]
Getting an article published on CodeProject should be easier and faster for Bronze and Silver authors.