PROGRAM CRASHES AND SWITCHES MY COMPUTER OFF

Hi there, I want to read the two strings in the program below into two linked lists but the program crashes and switches my computer off after I run it. Any idea what could be causing this?
Last edited on
current = current->link;
Where will current point now?
Last edited on
really? it shuts down? that's the worst case of undefined behaviour I've actually heard of first-hand.
@Peter87, thank you. I missed that line all together. I managed to fix it. thanks
Topic archived. No new replies allowed.