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