Path: utzoo!utgpu!water!watmath!clyde!rutgers!husc6!cmcl2!brl-adm!brl-smoke!gwyn From: gwyn@brl-smoke.ARPA (Doug Gwyn ) Newsgroups: comp.lang.c Subject: Re: exit(main(argc,argv,env)); Message-ID: <6880@brl-smoke.ARPA> Date: 19 Dec 87 02:30:56 GMT References: <10875@brl-adm.ARPA> <1253@homxb.UUCP> Reply-To: gwyn@brl.arpa (Doug Gwyn (VLD/VMB) ) Organization: Ballistic Research Lab (BRL), APG, MD. Lines: 13 In article <1253@homxb.UUCP> mr@homxb.UUCP (mark) writes: >This brings up an interesting problem : "Interesting" must be in the mind of the beholder! > What if you declare main to return something other than an int ? Simple: if you do that, you're wrong. > Is that allowed ? How could it be? However, few compilers will warn you about this mistake.