From: kagel AT quasar DOT bloomberg DOT com Date: Thu, 11 Jul 1996 09:03:11 -0400 Message-Id: <9607111303.AA13156@quasar.bloomberg.com > To: laurin AT cyberhighway DOT net Cc: djgpp AT delorie DOT com In-Reply-To: <1.5.4.16.19960707144030.0907a330@mailhost.cyberhighway.net> (message from laurin keith davis on Sun, 7 Jul 1996 13:54:53 -0600 (MDT)) Subject: Re: main vs void main? Reply-To: kagel AT dg1 DOT bloomberg DOT com Errors-To: postmaster AT ns1 Date: Sun, 7 Jul 1996 13:54:53 -0600 (MDT) X-Sender: laurin AT mailhost DOT cyberhighway DOT net X-Mailer: Windows Eudora Light Version 1.5.4 (16) Mime-Version: 1.0 From: laurin keith davis Content-Type: text/plain; charset="us-ascii" Content-Length: 663 i am using an online tutorial and it suddenly went from using main to void main without telling me why. could someone please explain the difference? There is a recent thread on this topic check out DJ's server and search the archive. Basically your tutorial is wrong on both counts. Main should always be declared "int main( void ) -or- int main( int argc, char **argv )" though various people espoused in the thread as to "void main() -and- main()" being harmless. Check out the thread for more depth. -- Art S. Kagel, kagel AT quasar DOT bloomberg DOT com A proverb is no proverb to you 'till life has illustrated it. -- John Keats