Path: utzoo!attcan!uunet!cs.utexas.edu!hellgate.utah.edu!cc.utah.edu!orcutt From: ORCUTT@cc.utah.edu Newsgroups: comp.lang.c Subject: Re: void main(argc, argv) Message-ID: <35934@cc.utah.edu> Date: 20 Nov 89 17:24:40 GMT Lines: 10 I always use return instead of exit when I am returning from main. I do this because most compilers know that code after a block closed by return is dead code, like when both branches if an if ... else block end in a return. I thus get warnings about such code. I reserve exit for returning for functions below main in the tree. For this reason, I always declare main as returning an int to avoid warnings from compilers that don't like void functions to return values.