What could do this???
if my main function ends in...
It gives this output:Code:printf("Make program die now\n\n"); return 0; }
But if the main function ends like this:Make program die now
Segmentation Fault
Then it completes fine!Code:printf("Make program live now\n\n"); exit(0); return 0; }
I've got some other code of various things above that, but what is the difference between what exit(0) is doing and what return 0 is doing, and what could cause a segfault on the return from main?