PROGRAM CRASHES AND SWITCHES MY COMPUTER OFF

Sep 2, 2012 at 10:08am
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 Sep 2, 2012 at 3:07pm
Sep 2, 2012 at 10:45am
current = current->link;
Where will current point now?
Last edited on Sep 2, 2012 at 10:45am
Sep 2, 2012 at 10:55am
really? it shuts down? that's the worst case of undefined behaviour I've actually heard of first-hand.
Sep 2, 2012 at 2:54pm
@Peter87, thank you. I missed that line all together. I managed to fix it. thanks
Topic archived. No new replies allowed.