Re: [LIP] return status from main()...
"sameer oak" <samunix-e99/[email protected]>
| Newsgroups | gmane.user-groups.linux.india.programmers |
|---|---|
| Message-ID | <[email protected]> |
Binand wrote:
> Because main returning void is not valid C. Behaviour in this case
> is undefined.
...
i agree about void main(void)
but what about int main(void){} or int main(void){return;}
the behaviour of 4.3-BSD and SVR4 is known to return 13.
i couldn't find the reason why?
also, for the above mention code, Linux returns 0.
is there any reason?
-------------------------------------------------------
This SF.Net email is sponsored by: Oracle 10g
Get certified on the hottest thing ever to hit the market... Oracle 10g.
Take an Oracle 10g class now, and we'll give you the exam FREE.
http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click