Any section of code that is deemed to be "undefined" is not technically valid, and therefore should be avoided.Originally posted by kybert
does the OS really check the return value from main() ?
I returned 4 different values:
void, -1, 0, 1
and all have the same effect - nothing!!
So what's the point??
>>all have the same effect - nothing!!
Lucky you. But your code might not work elsewhere. Remember, just because it appears to work, doesn't mean it's correct.
This is a popular discussion that comes up a lot. If you want to know more, try a board search.
Here's the C FAQ with some helpful info: http://www.eskimo.com/~scs/C-faq/s11.html