Reverse k linked list

output showing error

@sam15jain
In Line No. 63 , you assign start = temp when temp itself has not been assigned any value so far. It will pick up a random value. start gets a random pointer and your code gives the error

sir I made the change you suggested, but it still shows error, here’s the updated code-

@tarunluthra
Let us discuss this issue on your other doubt thread as this one has been marked Resolved.