sort and merging 2 linked list
<p>I'm trying to add two linked list of sparse matrix, B added to A.
But it doesn't work and sometimes will crash. i have no idea what went wrong. So far for the equal there's no problem at all. Been trying to fix this for almost a day.</p>

<pre><code>if (size == 1)
{
    t= temp;
    temp1 = temp;
    temp = temp1 -&gt; next;
    t -&gt; next = curr;
    curr = t;

}
</code></pre>
