|
From: Ioannis V. <no...@ho...> - 2002-11-21 20:18:34
|
> -----Original Message----- > From: Ioannis Vranos [mailto:no...@ho...] > Sent: Thursday, November 21, 2002 10:16 PM > To: Dev-C++ Mailing List (dev...@li...) > Subject: RE: [Dev-C++] 2 more questions > > > > -----Original Message----- > > From: dev...@li... > > [mailto:dev...@li...] On Behalf > > Of Paul Ardeleanu > > Sent: Thursday, November 21, 2002 8:40 PM > > To: Dev-C++ Mailing List > > Subject: RE: [Dev-C++] 2 more questions > > > > > > Why are you all so keen in returning a value at the end of main? > > > It is required in C90. By "required" i mean that if you do not return a value, "undefined behaviour" occurs. Not required in C++98 and C99 (=if you > do not return anything, a value indicating success is > returned implicitly). > > > > Ioannis Vranos > > * Programming pages: http://www.noicys.freeurl.com > * Alternative URL: http://run.to/noicys > > > |